mirror of
https://github.com/git/git.git
synced 2024-11-19 15:34:51 +01:00
8e43a1d010
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 <florian.achleitner.2.6.31@gmail.com> Acked-by: David Michael Barr <b@rr-dav.id.au> Signed-off-by: Junio C Hamano <gitster@pobox.com>
18 lines
361 B
C
18 lines
361 B
C
/*
|
|
* This file is in the public domain.
|
|
* You may freely use, modify, distribute, and relicense it.
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include "svndump.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
if (svndump_init(NULL))
|
|
return 1;
|
|
svndump_read((argc > 1) ? argv[1] : NULL, "refs/heads/master",
|
|
"refs/notes/svn/revs");
|
|
svndump_deinit();
|
|
svndump_reset();
|
|
return 0;
|
|
}
|