]> andersk Git - svn-all-fast-export.git/blobdiff - src/repository.cpp
Auto create branches
[svn-all-fast-export.git] / src / repository.cpp
index 538b6f069d331def03227575bb1ca55d103e0706..1ebdb6f0e5f78c130261e098822849ef5c33527c 100644 (file)
@@ -114,8 +114,8 @@ Repository::Transaction *Repository::newTransaction(const QString &branch, const
                                                     int revnum)
 {
     if (!branches.contains(branch)) {
-        qCritical() << branch << "is not a known branch in repository" << name;
-        return 0;
+        qWarning() << branch << "is not a known branch in repository" << name << endl
+                   << "Going to create it automatically";
     }
 
     Transaction *txn = new Transaction;
@@ -217,7 +217,7 @@ void Repository::Transaction::commit()
 
         Branch &br = repository->branches[branch];
         if (!br.created) {
-            qWarning() << "Branch" << branch << "doesn't exist at revision"
+            qWarning() << "Branch" << branch << "in repository" << repository->name << "doesn't exist at revision"
                        << revnum << "-- did you resume from the wrong revision?";
             br.created = revnum;
         }
This page took 0.025046 seconds and 4 git commands to generate.