diff options
-rw-r--r-- | src/options.cpp | 2 | ||||
-rw-r--r-- | src/repository.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/options.cpp b/src/options.cpp index 0de8625..892b6e1 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -42,7 +42,7 @@ void Options::showHelp() void Options::parseArguments(const QStringList &argumentList) { QSet<QString> validOptions; - validOptions << "help"; + validOptions << "help" << "metadata"; QSet<QString> validOptionsWithComplement; validOptionsWithComplement << "resume-from" << "max-rev" << "identity-map"; diff --git a/src/repository.cpp b/src/repository.cpp index 5faf2af..9c2a9d5 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -16,6 +16,7 @@ */ #include "repository.h" +#include "options.h" #include <QTextStream> #include <QDebug> #include <QLinkedList> @@ -246,7 +247,8 @@ void Repository::Transaction::commit() QByteArray message = log; if (!message.endsWith('\n')) message += '\n'; - message += "\nsvn path=" + svnprefix + "; revision=" + QByteArray::number(revnum) + "\n"; + if (Options::globalOptions->switches.value("metadata", true)) + message += "\nsvn path=" + svnprefix + "; revision=" + QByteArray::number(revnum) + "\n"; { QByteArray branchRef = branch; |