Make annotate use option --rev instead od --revision like other commands.
authorThomas Arendsen Hein <thomas@intevation.de>
Sat, 16 Jul 2005 07:58:56 +0100
changeset 715 938dd667ca21
parent 714 29fcd195e056
child 716 63b331d754d0
Make annotate use option --rev instead od --revision like other commands. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Make annotate use option --rev instead od --revision like other commands. manifest hash: fe9c9cd9d42657f60d302b557f1f33640fd51199 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC2LAwW7P1GVgWeRoRAqYKAJ4tiLIVTRN0Ot6bjrEZRc9VFrk3zwCdGx/C PhOGWMHVlNYGZxmdXridIc4= =J7Cn -----END PGP SIGNATURE-----
mercurial/commands.py
--- a/mercurial/commands.py	Sat Jul 16 07:56:39 2005 +0100
+++ b/mercurial/commands.py	Sat Jul 16 07:58:56 2005 +0100
@@ -336,8 +336,8 @@
     if not opts['user'] and not opts['changeset']:
         opts['number'] = 1
 
-    if opts['revision']:
-        node = repo.changelog.lookup(opts['revision'])
+    if opts['rev']:
+        node = repo.changelog.lookup(opts['rev'])
     else:
         node = repo.dirstate.parents()[0]
     change = repo.changelog.read(node)
@@ -1092,7 +1092,7 @@
     "addremove": (addremove, [], "hg addremove [FILE]..."),
     "^annotate":
         (annotate,
-         [('r', 'revision', '', 'revision'),
+         [('r', 'rev', '', 'revision'),
           ('u', 'user', None, 'show user'),
           ('n', 'number', None, 'show revision number'),
           ('c', 'changeset', None, 'show changeset')],