diff mercurial/hg.py @ 892:f481c9b6786e

Fix bug involving "hg debugwalk -Ipattern" from repository root.
author Bryan O'Sullivan <bos@serpentine.com>
date Sat, 13 Aug 2005 15:09:37 -0800
parents 509de8ab6f31
children 62ec665759f2
line wrap: on
line diff
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -502,6 +502,7 @@ class dirstate:
                     for dir, subdirs, fl in os.walk(f):
                         d = dir[len(self.root) + 1:]
                         nd = util.normpath(d)
+                        if nd == '.': nd = ''
                         if seen(nd):
                             subdirs[:] = []
                             continue