changeset 20379:b75a04502ced

convert: add tagmap option Tests have been updated.
author Sean Farley <sean.michael.farley@gmail.com>
date Wed, 22 Jan 2014 15:43:21 -0600
parents 9616b03113ce
children c697b70f295f
files hgext/convert/__init__.py tests/test-convert.t
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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