##// END OF EJS Templates
Make annotate --follow an alias for -f/--file to behave like in older versions...
Thomas Arendsen Hein -
r10579:f142fa3c stable
parent child Browse files
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)')),
@@ -102,4 +102,4 b' 1:2: a'
102 1:3: a
102 1:3: a
103 % generate ABA rename configuration
103 % generate ABA rename configuration
104 % annotate after ABA with follow
104 % annotate after ABA with follow
105 8: foo
105 foo: foo
General Comments 0
You need to be logged in to leave comments. Login now