changeset 5040:4f34d9b2568e

Update style of record's cmdtable to match mercurial/commands.py
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 01 Aug 2007 10:42:42 +0200
parents c87de77a7d9f
children 49059086c634
files hgext/record.py tests/test-record.out
diffstat 2 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/record.py
+++ b/hgext/record.py
@@ -371,11 +371,12 @@ def record(ui, repo, *pats, **opts):
     return cmdutil.commit(ui, repo, recordfunc, pats, opts)
 
 cmdtable = {
-    'record':
-    (record, [('A', 'addremove', None,
-               _('mark new/missing files as added/removed before committing')),
-              ('d', 'date', '', _('record datecode as commit date')),
-              ('u', 'user', '', _('record user as commiter')),
-              ] + commands.walkopts + commands.commitopts,
-     _('hg record [FILE]...')),
-    }
+    "record":
+        (record,
+         [('A', 'addremove', None,
+           _('mark new/missing files as added/removed before committing')),
+          ('d', 'date', '', _('record datecode as commit date')),
+          ('u', 'user', '', _('record user as commiter')),
+         ] + commands.walkopts + commands.commitopts,
+         _('hg record [OPTION]... [FILE]...')),
+}
--- a/tests/test-record.out
+++ b/tests/test-record.out
@@ -1,5 +1,5 @@
 % help
-hg record [FILE]...
+hg record [OPTION]... [FILE]...
 
 interactively select changes to commit