Code

svn import: get all revisions
authorMatthias Urlichs <smurf@smurf.noris.de>
Mon, 10 Oct 2005 18:10:48 +0000 (20:10 +0200)
committerMatthias Urlichs <smurf@smurf.noris.de>
Mon, 10 Oct 2005 18:10:48 +0000 (20:10 +0200)
Not skipping the last revision is generally seen as Good Thing. ;-)

Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
git-svnimport.perl

index 102fa6e33964794a62861e27b0bc5cb1de72a2b6..f9318c85cde0fd574285d1266998904574fb6e4d 100755 (executable)
@@ -623,7 +623,7 @@ sub commit_all {
        }
 }
 
-while(++$current_rev < $svn->{'maxrev'}) {
+while(++$current_rev <= $svn->{'maxrev'}) {
        $svn->{'svn'}->get_log("/",$current_rev,$current_rev,$current_rev,1,1,\&_commit_all,"");
        commit_all();
        if($opt_l and not --$opt_l) {