convert: better grouping of command line flags in help
authorMartin Geisler <mg@lazybytes.net>
Fri, 10 Sep 2010 00:07:38 +0200
changeset 12187 4a854122a1c7
parent 12183 f64b416b0ac8
child 12188 6045d467abd7
convert: better grouping of command line flags in help We normally put related command line flags after one another.
hgext/convert/__init__.py
tests/test-convert.out
--- a/hgext/convert/__init__.py	Wed Sep 08 15:23:48 2010 +0200
+++ b/hgext/convert/__init__.py	Fri Sep 10 00:07:38 2010 +0200
@@ -265,14 +265,14 @@
         (convert,
          [('A', 'authors', '',
            _('username mapping filename'), _('FILE')),
+          ('s', 'source-type', '',
+           _('source repository type'), _('TYPE')),
           ('d', 'dest-type', '',
            _('destination repository type'), _('TYPE')),
+          ('r', 'rev', '',
+           _('import up to target revision REV'), _('REV')),
           ('', 'filemap', '',
            _('remap file names using contents of file'), _('FILE')),
-          ('r', 'rev', '',
-           _('import up to target revision REV'), _('REV')),
-          ('s', 'source-type', '',
-           _('source repository type'), _('TYPE')),
           ('', 'splicemap', '',
            _('splice synthesized history into place'), _('FILE')),
           ('', 'branchmap', '',
--- a/tests/test-convert.out	Wed Sep 08 15:23:48 2010 +0200
+++ b/tests/test-convert.out	Fri Sep 10 00:07:38 2010 +0200
@@ -225,10 +225,10 @@
 options:
 
  -A --authors FILE      username mapping filename
+ -s --source-type TYPE  source repository type
  -d --dest-type TYPE    destination repository type
+ -r --rev REV           import up to target revision REV
     --filemap FILE      remap file names using contents of file
- -r --rev REV           import up to target revision REV
- -s --source-type TYPE  source repository type
     --splicemap FILE    splice synthesized history into place
     --branchmap FILE    change branch names while converting
     --branchsort        try to sort changesets by branches