changeset 12187:4a854122a1c7

convert: better grouping of command line flags in help We normally put related command line flags after one another.
author Martin Geisler <mg@lazybytes.net>
date Fri, 10 Sep 2010 00:07:38 +0200
parents f64b416b0ac8
children 6045d467abd7
files hgext/convert/__init__.py tests/test-convert.out
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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