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>maint
							parent
							
								
									9086a18cb8
								
							
						
					
					
						commit
						a7cfb4a43f
					
				|  | @ -851,7 +851,7 @@ sub commit_all { | ||||||
|  |  | ||||||
| $opt_l = $svn->{'maxrev'} if not defined $opt_l or $opt_l > $svn->{'maxrev'}; | $opt_l = $svn->{'maxrev'} if not defined $opt_l or $opt_l > $svn->{'maxrev'}; | ||||||
|  |  | ||||||
| if ($svn->{'maxrev'} < $current_rev) { | if ($opt_l < $current_rev) { | ||||||
|     print "Up to date: no new revisions to fetch!\n" if $opt_v; |     print "Up to date: no new revisions to fetch!\n" if $opt_v; | ||||||
|     unlink("$git_dir/SVN2GIT_HEAD"); |     unlink("$git_dir/SVN2GIT_HEAD"); | ||||||
|     exit; |     exit; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Anand Kumria
						Anand Kumria