changeset 5105: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	Thu Aug 02 14:51:49 2007 +0200
+++ b/mercurial/commands.py	Wed Aug 15 16:09:04 2007 +0200
@@ -1204,9 +1204,9 @@
             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: