rules.load();
int min_rev = options.options.value("resume-from").toInt();
+ int max_rev = options.options.value("max-rev").toInt();
if (min_rev < 1)
min_rev = 1;
svn.setMatchRules(rules.matchRules());
svn.setRepositories(repositories);
- int max_rev = svn.youngestRevision();
+ if (max_rev < 1)
+ max_rev = svn.youngestRevision();
for (int i = min_rev; i <= max_rev; ++i)
if (!svn.exportRevision(i))
break;
validOptions << "help";
QSet<QString> validOptionsWithComplement;
- validOptionsWithComplement << "resume-from" << "identity-map";
+ validOptionsWithComplement << "resume-from" << "max-rev" << "identity-map";
QStringList arguments = argumentList;
arguments.takeFirst(); // the first one is the executable name; drop it