]> andersk Git - svn-all-fast-export.git/commitdiff
more information at the end of the revision export
authorThiago Macieira <thiago@cassini.local.lan>
Mon, 24 Dec 2007 18:09:22 +0000 (16:09 -0200)
committerThiago Macieira <thiago@cassini.local.lan>
Mon, 24 Dec 2007 18:09:22 +0000 (16:09 -0200)
src/svn.cpp

index 826dd6cc2d2f28234a1a1e844ab2c62330751fa6..8892cdc70acb8606e7400568d671a0d4da4b0f9b 100644 (file)
@@ -341,6 +341,7 @@ int SvnPrivate::exportRevision(int revnum)
         void *value;
         apr_hash_this(i, &vkey, NULL, &value);
         const char *key = reinterpret_cast<const char *>(vkey);
+        QString current = QString::fromUtf8(key);
 
         // was this copied from somewhere?
         svn_revnum_t rev_from;
@@ -358,13 +359,10 @@ int SvnPrivate::exportRevision(int revnum)
                 continue;
             }
 
+            current += '/';
             qDebug() << "   " << key << "was copied from" << path_from;
         }
 
-        QString current = QString::fromUtf8(key);
-        if (is_dir)
-            current += '/';
-
         // find the first rule that matches this pathname
         MatchRuleList::ConstIterator match = findMatchRule(matchRules, revnum, current);
         if (match != matchRules.constEnd()) {
@@ -467,8 +465,10 @@ int SvnPrivate::exportRevision(int revnum)
     }
     revpool.clear();
 
-    if (transactions.isEmpty())
+    if (transactions.isEmpty()) {
+        printf("nothing to do\n");
         return EXIT_SUCCESS;    // no changes?
+    }
 
     // now create the commit
     apr_hash_t *revprops;
@@ -497,6 +497,6 @@ int SvnPrivate::exportRevision(int revnum)
         delete txn;
     }
 
-    printf("\n");
+    printf("done\n");
     return EXIT_SUCCESS;
 }
This page took 0.050872 seconds and 5 git commands to generate.