path: root/test-svn-fe.c
diff options
authorFlorian Achleitner <>2012-09-19 15:21:27 (GMT)
committerJunio C Hamano <>2012-10-07 21:10:17 (GMT)
commit8e43a1d010e22a0e432de440b08cc4389d8370f9 (patch)
treeb7b15e50ef8fbe1c4a67ce40a018b4b50f18f1c5 /test-svn-fe.c
parent8d7cd8eb3b4cee410ee391f7d59610e2f90adf4f (diff)
remote-svn: add incremental import
Search for a note attached to the ref to update and read it's 'Revision-number:'-line. Start import from the next svn revision. If there is no next revision in the svn repo, svnrdump terminates with a message on stderr an non-zero return value. This looks a little weird, but there is no other way to know whether there is a new revision in the svn repo. On the start of an incremental import, the parent of the first commit in the fast-import stream is set to the branch name to update. All following commits specify their parent by a mark number. Previous mark files are currently not reused. Signed-off-by: Florian Achleitner <> Acked-by: David Michael Barr <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'test-svn-fe.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/test-svn-fe.c b/test-svn-fe.c
index cb0d80f..0f2d9a4 100644
--- a/test-svn-fe.c
+++ b/test-svn-fe.c
@@ -40,7 +40,7 @@ int main(int argc, char *argv[])
if (argc == 2) {
if (svndump_init(argv[1]))
return 1;
- svndump_read(NULL, "refs/heads/master");
+ svndump_read(NULL, "refs/heads/master", "refs/notes/svn/revs");
return 0;