Show More
@@ -99,6 +99,11 b' def annotate(ui, repo, *pats, **opts):' | |||||
99 | anyway, although the results will probably be neither useful |
|
99 | anyway, although the results will probably be neither useful | |
100 | nor desirable. |
|
100 | nor desirable. | |
101 | """ |
|
101 | """ | |
|
102 | if opts.get('follow'): | |||
|
103 | # --follow is deprecated and now just an alias for -f/--file | |||
|
104 | # to mimic the behavior of Mercurial before version 1.5 | |||
|
105 | opts['file'] = 1 | |||
|
106 | ||||
102 | datefunc = ui.quiet and util.shortdate or util.datestr |
|
107 | datefunc = ui.quiet and util.shortdate or util.datestr | |
103 | getdate = util.cachefunc(lambda x: datefunc(x[0].date())) |
|
108 | getdate = util.cachefunc(lambda x: datefunc(x[0].date())) | |
104 |
|
109 | |||
@@ -3422,7 +3427,8 b' table = {' | |||||
3422 | "^annotate|blame": |
|
3427 | "^annotate|blame": | |
3423 | (annotate, |
|
3428 | (annotate, | |
3424 | [('r', 'rev', '', _('annotate the specified revision')), |
|
3429 | [('r', 'rev', '', _('annotate the specified revision')), | |
3425 | ('', 'follow', None, _('follow copies and renames (DEPRECATED)')), |
|
3430 | ('', 'follow', None, | |
|
3431 | _('follow copies/renames and list the filename (DEPRECATED)')), | |||
3426 | ('', 'no-follow', None, _("don't follow copies and renames")), |
|
3432 | ('', 'no-follow', None, _("don't follow copies and renames")), | |
3427 | ('a', 'text', None, _('treat all files as text')), |
|
3433 | ('a', 'text', None, _('treat all files as text')), | |
3428 | ('u', 'user', None, _('list the author (long with -v)')), |
|
3434 | ('u', 'user', None, _('list the author (long with -v)')), |
General Comments 0
You need to be logged in to leave comments.
Login now