changeset 18088:52620e5db2f6

ignore: only read an ignore file once
author Bryan O'Sullivan <bryano@fb.com>
date Mon, 17 Dec 2012 15:52:44 -0800
parents 5712e3b12274
children 0127366df8fe
files mercurial/ignore.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)