@matheusbsbs / matheus-bagliano / commits / a7cfb4a43f
Fork 0

git-svnimport: if a limit is specified, respect it

git-svnimport will import the same revision over and over again if a limit (-l <rev>) has been specified. Instead if that revision has already been processed, exit with an up-to-date message. Signed-off-by: Anand Kumria <wildfire@progsoc.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Anand Kumria committed Mar 26, 2006 at 09:43 UTC a7cfb4a43fce841cd673057cf4137f85e6f804eb
1 file changed +1 -1
git-svnimport.perl
+1 -1
@@ -851,7 +851,7 @@ sub commit_all {
851
852 $opt_l = $svn->{'maxrev'} if not defined $opt_l or $opt_l > $svn->{'maxrev'};
853
854 -if ($svn->{'maxrev'} < $current_rev) {
854 +if ($opt_l < $current_rev) {
855 print "Up to date: no new revisions to fetch!\n" if $opt_v;
856 unlink("$git_dir/SVN2GIT_HEAD");
857 exit;