Code

vcs-svn: use mark from previous import for parent commit
authorDavid Barr <david.barr@cordelta.com>
Sun, 12 Dec 2010 02:41:38 +0000 (13:41 +1100)
committerJonathan Nieder <jrnieder@gmail.com>
Mon, 7 Mar 2011 07:43:58 +0000 (01:43 -0600)
With this patch, overlapping incremental imports work.

Signed-off-by: David Barr <david.barr@cordelta.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
vcs-svn/fast_export.c

index 9c03f3e16d0b1636cf406ff8ac80662404e8fc56..f19db9ae8274e530250189d138616e18fbb071ba 100644 (file)
@@ -83,7 +83,7 @@ void fast_export_begin_commit(uint32_t revision, uint32_t author, char *log,
                   log, gitsvnline);
        if (!first_commit_done) {
                if (revision > 1)
-                       printf("from refs/heads/master^0\n");
+                       printf("from :%"PRIu32"\n", revision - 1);
                first_commit_done = 1;
        }
 }