# HG changeset patch # User Sean Farley # Date 1390325717 21600 # Node ID 81cf597dafa9b339c4fadbafe2217ab3d5675532 # Parent a3545c3104aacb97cf98a22ee4a2e472f406708b convert: add closemap option Tests have been updated. diff -r a3545c3104aa -r 81cf597dafa9 hgext/convert/__init__.py --- a/hgext/convert/__init__.py Tue Jan 21 11:20:14 2014 -0600 +++ b/hgext/convert/__init__.py Tue Jan 21 11:35:17 2014 -0600 @@ -141,6 +141,10 @@ branch names. This can be used to (for instance) move code in one repository from "default" to a named branch. + The closemap is a file that allows closing of a branch. This is useful if + you want to close a branch. Each entry contains a revision or hash + separated by white space. + Mercurial Source ################ @@ -319,6 +323,8 @@ _('splice synthesized history into place'), _('FILE')), ('', 'branchmap', '', _('change branch names while converting'), _('FILE')), + ('', 'closemap', '', + _('closes given revs'), _('FILE')), ('', 'branchsort', None, _('try to sort changesets by branches')), ('', 'datesort', None, _('try to sort changesets by date')), ('', 'sourcesort', None, _('preserve source changesets order')), diff -r a3545c3104aa -r 81cf597dafa9 tests/test-convert.t --- a/tests/test-convert.t Tue Jan 21 11:20:14 2014 -0600 +++ b/tests/test-convert.t Tue Jan 21 11:35:17 2014 -0600 @@ -121,6 +121,10 @@ can be used to (for instance) move code in one repository from "default" to a named branch. + The closemap is a file that allows closing of a branch. This is useful if + you want to close a branch. Each entry contains a revision or hash + separated by white space. + Mercurial Source ################ @@ -266,6 +270,7 @@ --filemap FILE remap file names using contents of file --splicemap FILE splice synthesized history into place --branchmap FILE change branch names while converting + --closemap FILE closes given revs --branchsort try to sort changesets by branches --datesort try to sort changesets by date --sourcesort preserve source changesets order