# HG changeset patch # User Benoit Boissinot # Date 1130368256 25200 # Node ID f4250806dbeb5dbf8761accd7b508a16bc5add56 # Parent 6fbb13b7a59fc3f6cab865cb6e9bd634fcd854e4 further fix traceback on invalid .hgignore patterns Please apply this little fix (matchfn return None if no patterns are specified). diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -246,6 +246,8 @@ def _matcher(canonroot, cwd, names, inc, def matchfn(pats, tail): """build a matching function from a set of patterns""" + if not pats: + return matches = [] for k, p in pats: try: