Submitter | Katsunori FUJIWARA |
---|---|
Date | Feb. 15, 2014, 10:59 a.m. |
Message ID | <07301d80e333276ad9b1.1392461976@juju> |
Download | mbox | patch |
Permalink | /patch/3670/ |
State | Accepted |
Commit | 191a0ae3776784473fba0a54070742eb8a5fdd9e |
Headers | show |
Comments
Patch
diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3239,7 +3239,6 @@ rev = ctx.rev() datefunc = ui.quiet and util.shortdate or util.datestr found = False - filerevmatches = {} @util.cachefunc def binary(): flog = getfile(fn) @@ -3262,10 +3261,8 @@ if opts.get('date'): cols.append((datefunc(ctx.date()), 'grep.date')) if opts.get('files_with_matches'): - c = (fn, rev) - if c in filerevmatches: + if found: continue - filerevmatches[c] = 1 else: before = l.line[:l.colstart] match = l.line[l.colstart:l.colend]