ignore: only read an ignore file once
authorBryan O'Sullivan <bryano@fb.com>
Mon, 17 Dec 2012 15:52:44 -0800
changeset 18088 52620e5db2f6
parent 18087 5712e3b12274
child 18089 0127366df8fe
ignore: only read an ignore file once
mercurial/ignore.py
--- a/mercurial/ignore.py	Mon Dec 17 16:23:37 2012 -0800
+++ b/mercurial/ignore.py	Mon Dec 17 15:52:44 2012 -0800
@@ -57,6 +57,8 @@
 
     pats = {}
     for f in files:
+        if f in pats:
+            continue
         try:
             pats[f] = []
             fp = open(f)