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 102fa6e..f9318c8 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) {