Mercurial > hg > mercurial-crew-with-dirclash
changeset 5168:64888ff907f4
Fix issue 685: trackback in grep -r after rename
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 15 Aug 2007 16:09:04 +0200 |
parents | 7706ff46ef45 |
children | ee702e7f181f |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1204,9 +1204,9 @@ def grep(ui, repo, pattern, *pats, **opt for fn in fns: if fn in skip: continue - fstate.setdefault(fn, {}) try: grepbody(fn, rev, getfile(fn).read(mf[fn])) + fstate.setdefault(fn, []) if follow: copied = getfile(fn).renamed(mf[fn]) if copied: