]> andersk Git - svn-all-fast-export.git/blobdiff - src/svn.cpp
more information at the end of the revision export
[svn-all-fast-export.git] / src / svn.cpp
index 7ec39087e502fa4437b80ce4f843dd2ee5ed3d1b..8892cdc70acb8606e7400568d671a0d4da4b0f9b 100644 (file)
@@ -325,7 +325,8 @@ int SvnPrivate::exportRevision(int revnum)
     QHash<QString, Repository::Transaction *> transactions;
 
     // open this revision:
-    qDebug() << "Exporting revision" << revnum;
+    printf("Exporting revision %d ", revnum);
+    fflush(stdout);
     svn_fs_root_t *fs_root;
     SVN_ERR(svn_fs_revision_root(&fs_root, fs, revnum, pool));
 
@@ -340,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;
@@ -353,17 +355,14 @@ int SvnPrivate::exportRevision(int revnum)
             if (path_from == NULL) {
                 // no, it's a new directory being added
                 // Git doesn't handle directories, so we don't either
-                qDebug() << "   mkdir ignored:" << key;
+                //qDebug() << "   mkdir ignored:" << key;
                 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()) {
@@ -466,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;
@@ -496,6 +497,6 @@ int SvnPrivate::exportRevision(int revnum)
         delete txn;
     }
 
-    printf("\n");
+    printf("done\n");
     return EXIT_SUCCESS;
 }
This page took 0.02804 seconds and 4 git commands to generate.