revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION));
}
SVNWCClient wcClient = getClientManager().getWCClient();
myOut = out;
SVNXMLSerializer serializer = new SVNXMLSerializer(myOut);
SVNXMLInfoHandler handler = new SVNXMLInfoHandler(serializer);
if (getCommandLine().hasArgument(SVNArgument.XML) && !getCommandLine().hasArgument(SVNArgument.INCREMENTAL)) {
handler.startDocument();
}
ISVNInfoHandler infoHandler = getCommandLine().hasArgument(SVNArgument.XML) ? handler : (ISVNInfoHandler) this;
for (int i = 0; i < getCommandLine().getPathCount(); i++) {
myBaseFile = new File(getCommandLine().getPathAt(i));
SVNRevision peg = getCommandLine().getPathPegRevision(i);
handler.setTargetPath(myBaseFile);
wcClient.doInfo(myBaseFile, peg, revision, recursive, infoHandler);
}
myBaseFile = null;
for (int i = 0; i < getCommandLine().getURLCount(); i++) {
String url = getCommandLine().getURL(i);
SVNRevision peg = getCommandLine().getPegRevision(i);
wcClient.doInfo(SVNURL.parseURIEncoded(url), peg, revision, recursive, infoHandler);
}
if (getCommandLine().hasArgument(SVNArgument.XML)&& !getCommandLine().hasArgument(SVNArgument.INCREMENTAL)) {
handler.endDocument();
}
if (getCommandLine().hasArgument(SVNArgument.XML)) {
try {
serializer.flush();
} catch (IOException e) {