# 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 -r 6fbb13b7a59f -r f4250806dbeb mercurial/util.py --- a/mercurial/util.py Wed Oct 26 16:10:36 2005 -0700 +++ b/mercurial/util.py Wed Oct 26 16:10:56 2005 -0700 @@ -246,6 +246,8 @@ def matchfn(pats, tail): """build a matching function from a set of patterns""" + if not pats: + return matches = [] for k, p in pats: try: