##// END OF EJS Templates
Add hg grep -d/--date to list the commit date of matched revisions....
Thomas Arendsen Hein -
r6133:779f2309 default
parent child Browse files
Show More
@@ -1043,6 +1043,8 b' def grep(ui, repo, pattern, *pats, **opt'
1043 cols.append(change)
1043 cols.append(change)
1044 if opts['user']:
1044 if opts['user']:
1045 cols.append(ui.shortuser(get(r)[1]))
1045 cols.append(ui.shortuser(get(r)[1]))
1046 if opts.get('date'):
1047 cols.append(util.datestr(get(r)[2]))
1046 if opts['files_with_matches']:
1048 if opts['files_with_matches']:
1047 c = (fn, r)
1049 c = (fn, r)
1048 if c in filerevmatches:
1050 if c in filerevmatches:
@@ -2895,6 +2897,7 b' table = {'
2895 ('n', 'line-number', None, _('print matching line numbers')),
2897 ('n', 'line-number', None, _('print matching line numbers')),
2896 ('r', 'rev', [], _('search in given revision range')),
2898 ('r', 'rev', [], _('search in given revision range')),
2897 ('u', 'user', None, _('print user who committed change')),
2899 ('u', 'user', None, _('print user who committed change')),
2900 ('d', 'date', None, _('list the date')),
2898 ] + walkopts,
2901 ] + walkopts,
2899 _('hg grep [OPTION]... PATTERN [FILE]...')),
2902 _('hg grep [OPTION]... PATTERN [FILE]...')),
2900 "heads":
2903 "heads":
General Comments 0
You need to be logged in to leave comments. Login now