##// END OF EJS Templates
Make annotate use option --rev instead od --revision like other commands....
Thomas Arendsen Hein -
r715:938dd667 default
parent child Browse files
Show More
@@ -336,8 +336,8 b' def annotate(ui, repo, file1, *files, **'
336 336 if not opts['user'] and not opts['changeset']:
337 337 opts['number'] = 1
338 338
339 if opts['revision']:
340 node = repo.changelog.lookup(opts['revision'])
339 if opts['rev']:
340 node = repo.changelog.lookup(opts['rev'])
341 341 else:
342 342 node = repo.dirstate.parents()[0]
343 343 change = repo.changelog.read(node)
@@ -1092,7 +1092,7 b' table = {'
1092 1092 "addremove": (addremove, [], "hg addremove [FILE]..."),
1093 1093 "^annotate":
1094 1094 (annotate,
1095 [('r', 'revision', '', 'revision'),
1095 [('r', 'rev', '', 'revision'),
1096 1096 ('u', 'user', None, 'show user'),
1097 1097 ('n', 'number', None, 'show revision number'),
1098 1098 ('c', 'changeset', None, 'show changeset')],
General Comments 0
You need to be logged in to leave comments. Login now