public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException {
String uri = args[0].getStringValue();
String user = args[1].getStringValue();
String password = args[2].getStringValue();
WorkingCopy wc = new WorkingCopy(user, password);
long update = -1;
try {
update = wc.update(new Resource(uri), SVNRevision.HEAD, true);
} catch (SVNException e) {
throw new XPathException(this, e.getMessage(), e);
}
return new IntegerValue(update);