convert: add tagmap option
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 22 Jan 2014 15:43:21 -0600
changeset 20379 b75a04502ced
parent 20378 9616b03113ce
child 20380 c697b70f295f
convert: add tagmap option Tests have been updated.
hgext/convert/__init__.py
tests/test-convert.t
--- a/hgext/convert/__init__.py	Wed Jan 22 15:40:17 2014 -0600
+++ b/hgext/convert/__init__.py	Wed Jan 22 15:43:21 2014 -0600
@@ -145,6 +145,10 @@
     you want to close a branch. Each entry contains a revision or hash
     separated by white space.
 
+    The tagpmap is a file that exactly analogous to the branchmap. This will
+    rename tags on the fly and prevent the 'update tags' commit usually found
+    at the end of a convert process.
+
     Mercurial Source
     ################
 
@@ -325,6 +329,8 @@
            _('change branch names while converting'), _('FILE')),
           ('', 'closemap', '',
            _('closes given revs'), _('FILE')),
+          ('', 'tagmap', '',
+           _('change tag names while converting'), _('FILE')),
           ('', 'branchsort', None, _('try to sort changesets by branches')),
           ('', 'datesort', None, _('try to sort changesets by date')),
           ('', 'sourcesort', None, _('preserve source changesets order')),
--- a/tests/test-convert.t	Wed Jan 22 15:40:17 2014 -0600
+++ b/tests/test-convert.t	Wed Jan 22 15:43:21 2014 -0600
@@ -125,6 +125,10 @@
       you want to close a branch. Each entry contains a revision or hash
       separated by white space.
   
+      The tagpmap is a file that exactly analogous to the branchmap. This will
+      rename tags on the fly and prevent the 'update tags' commit usually found
+      at the end of a convert process.
+  
       Mercurial Source
       ################
   
@@ -271,6 +275,7 @@
       --splicemap FILE   splice synthesized history into place
       --branchmap FILE   change branch names while converting
       --closemap FILE    closes given revs
+      --tagmap FILE      change tag names while converting
       --branchsort       try to sort changesets by branches
       --datesort         try to sort changesets by date
       --sourcesort       preserve source changesets order