]> Tony Duckles's Git Repositories (git.nynim.org) - svn2svn.git/commitdiff
Fix keep_revnum vs source_start_rev handling develop master
authorTony Duckles <tony@nynim.org>
Sun, 13 Mar 2016 19:53:24 +0000 (14:53 -0500)
committerTony Duckles <tony@nynim.org>
Sun, 13 Mar 2016 19:56:12 +0000 (14:56 -0500)
svn2svn/run/svnreplay.py

index f34400eebcb9a2cd02e9da508e6b68e759e8010e..2ef10fd735a4ef50d267b7d71aa77a9714b18578 100644 (file)
@@ -876,8 +876,8 @@ def real_main(args):
         source_start_rev = int(source_start_log['revision'])
         ui.status("Starting at source revision %s.", source_start_rev, level=ui.VERBOSE)
         ui.status("", level=ui.VERBOSE)
-        if options.keep_revnum and source_rev > target_rev_last:
-            target_rev_last = keep_revnum(source_rev, target_rev_last, wc_target_tmp)
+        if options.keep_revnum and source_start_rev > target_rev_last:
+            target_rev_last = keep_revnum(source_start_rev, target_rev_last, wc_target_tmp)
 
         # For the initial commit to the target URL, export all the contents from
         # the source URL at the start-revision.
@@ -914,7 +914,7 @@ def real_main(args):
             commit_count += 1
             target_rev_last = target_rev
             if options.verify:
-                verify_commit(source_rev, target_rev_last)
+                verify_commit(source_start_rev, target_rev_last)
     else:
         # Re-build the rev_map based on any already-replayed history in target_url
         build_rev_map(target_url, target_rev_last, source_info)