String wcDir = args[0].getStringValue();
try {
WorkingCopy wc = new WorkingCopy("", "");
wc.revert(new File[] { new Resource(wcDir) });
} catch (SVNException svne) {
svne.printStackTrace();
throw new XPathException(this,
"error while revert '" + wcDir + "'", svne);