changeset 757:7000825ef3ba

Updated help strings and test-help: - options -I/-X: always at the end, don't include them in the synopsis. - NAME is optional for hg revert - other small changes.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 22 Jul 2005 08:47:35 +0100
parents 5d79dfa5e98f
children c5db9581bfa6
files mercurial/commands.py tests/test-help.out
diffstat 2 files changed, 19 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Jul 22 08:11:49 2005 +0100
+++ b/mercurial/commands.py	Fri Jul 22 08:47:35 2005 +0100
@@ -1078,16 +1078,16 @@
     "^add": (add,
              [('I', 'include', [], 'include path in search'),
               ('X', 'exclude', [], 'exclude path from search')],
-             "hg add [OPTIONS] [FILES]"),
-    "addremove": (addremove, [], "hg addremove [FILES]"),
+             "hg add [FILE]..."),
+    "addremove": (addremove, [], "hg addremove [FILE]..."),
     "^annotate":
         (annotate,
-         [('I', 'include', [], 'include path in search'),
-          ('X', 'exclude', [], 'exclude path from search'),
-          ('r', 'rev', '', 'revision'),
+         [('r', 'rev', '', 'revision'),
           ('u', 'user', None, 'show user'),
           ('n', 'number', None, 'show revision number'),
-          ('c', 'changeset', None, 'show changeset')],
+          ('c', 'changeset', None, 'show changeset'),
+          ('I', 'include', [], 'include path in search'),
+          ('X', 'exclude', [], 'exclude path from search')],
          'hg annotate [-r REV] [-u] [-n] [-c] FILE...'),
     "cat":
         (cat,
@@ -1101,7 +1101,7 @@
         (commit,
          [('A', 'addremove', None, 'run add/remove during commit'),
           ('m', 'text', "", 'commit message'),
-          ('t', 'text', "", 'commit message (deprecated)'),
+          ('t', 'text', "", 'commit message (deprecated: use -m)'),
           ('l', 'logfile', "", 'commit text file'),
           ('d', 'date', "", 'date code'),
           ('u', 'user', "", 'user')],
@@ -1113,9 +1113,9 @@
     "debugindexdot": (debugindexdot, [], 'debugindexdot FILE'),
     "^diff":
         (diff,
-         [('I', 'include', [], 'include path in search'),
-          ('X', 'exclude', [], 'exclude path from search'),
-          ('r', 'rev', [], 'revision')],
+         [('r', 'rev', [], 'revision'),
+          ('I', 'include', [], 'include path in search'),
+          ('X', 'exclude', [], 'exclude path from search')],
          'hg diff [-r REV1 [-r REV2]] [FILE]...'),
     "^export":
         (export,
@@ -1133,12 +1133,12 @@
     "^init": (init, [], 'hg init'),
     "locate":
         (locate,
-         [('0', 'print0', None, 'end records with NUL'),
+         [('r', 'rev', '', 'revision'),
+          ('0', 'print0', None, 'end records with NUL'),
           ('f', 'fullpath', None, 'print complete paths'),
           ('I', 'include', [], 'include path in search'),
-          ('r', 'rev', '', 'revision'),
           ('X', 'exclude', [], 'exclude path from search')],
-         'hg locate [OPTION]... [PATTERN]...'),
+         'hg locate [-r REV] [-f] [-0] [PATTERN]...'),
     "^log|history":
         (log,
          [('r', 'rev', [], 'revision'),
@@ -1167,7 +1167,7 @@
         (revert,
          [("n", "nonrecursive", None, "don't recurse into subdirs"),
           ("r", "rev", "", "revision")],
-         "hg revert [-n] [-r REV] NAME..."),
+         "hg revert [-n] [-r REV] [NAME]..."),
     "root": (root, [], "hg root"),
     "^serve":
         (serve,
@@ -1182,7 +1182,7 @@
     "^status": (status,
                 [('I', 'include', [], 'include path in search'),
                  ('X', 'exclude', [], 'exclude path from search')],
-                'hg status [OPTION]... [FILE]...'),
+                'hg status [FILE]...'),
     "tag":
         (tag,
          [('l', 'local', None, 'make the tag local'),
--- a/tests/test-help.out	Fri Jul 22 08:11:49 2005 +0100
+++ b/tests/test-help.out	Fri Jul 22 08:47:35 2005 +0100
@@ -33,7 +33,7 @@
  status     show changed files in the working directory
  update     update or merge working directory
 hg add: option -h not recognized
-hg add [OPTIONS] [FILES]
+hg add [FILE]...
 
  -I --include 
    include path in search
@@ -42,7 +42,7 @@
 
 add the specified files on the next commit
 hg add: option --skjdfks not recognized
-hg add [OPTIONS] [FILES]
+hg add [FILE]...
 
  -I --include 
    include path in search
@@ -52,12 +52,12 @@
 add the specified files on the next commit
 hg diff [-r REV1 [-r REV2]] [FILE]...
 
+ -r --rev 
+   revision
  -I --include 
    include path in search
  -X --exclude 
    exclude path from search
- -r --rev 
-   revision
 
 diff working directory (or selected files)
 hg: unknown command foo