convert: add closemap option
authorSean Farley <sean.michael.farley@gmail.com>
Tue, 21 Jan 2014 11:35:17 -0600
changeset 20375 81cf597dafa9
parent 20374 a3545c3104aa
child 20376 7a4797910205
convert: add closemap option Tests have been updated.
hgext/convert/__init__.py
tests/test-convert.t
--- 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')),
--- 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