# HG changeset patch # User Sean Farley # Date 2014-01-22 21:43:21 # Node ID b75a04502ced539b2c18dc1955fb59b933cbf46e # Parent 9616b03113ce1441cd31d91f233220f72e1565a5 convert: add tagmap option Tests have been updated. diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py --- a/hgext/convert/__init__.py +++ b/hgext/convert/__init__.py @@ -145,6 +145,10 @@ def convert(ui, src, dest=None, revmapfi 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 @@ cmdtable = { _('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')), diff --git a/tests/test-convert.t b/tests/test-convert.t --- a/tests/test-convert.t +++ b/tests/test-convert.t @@ -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