# HG changeset patch # User Bryan O'Sullivan # Date 2005-07-20 11:37:01 # Node ID 3433b228bbb32c57cbf25e9f1bec3d66ea00cf20 # Parent d4e161d60f610f33fbe39d89f566add125002857 An empty .hgignore file must cause us to ignore nothing, not everything! diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -299,9 +299,12 @@ class dirstate: bigpat.append(util.pconvert(pat[:-1])) except IOError: pass - s = "(?:%s)" % (")|(?:".join(bigpat)) - r = re.compile(s) - self.ignorefunc = r.search + if bigpat: + s = "(?:%s)" % (")|(?:".join(bigpat)) + r = re.compile(s) + self.ignorefunc = r.search + else: + self.ignorefunc = util.never return self.ignorefunc(f)