Commit eb43b30a authored by Jack Jansen's avatar Jack Jansen

The logic for finding long matches before short ones was wrong (why did I...

The logic for finding long matches before short ones was wrong (why did I never notice this??!?), fixed.
parent 8a6cdccf
......@@ -142,13 +142,13 @@ class IncMatcher(Matcher):
if DEBUG:
print 'include', patharg, dstpath
return dstpath
path, lastcomp = os.path.split(path)
if not path:
break
removed[0:0] = [lastcomp]
# Next check the exclude directory
path = patharg
while 1:
## path, lastcomp = os.path.split(path)
## if not path:
## break
## removed[0:0] = [lastcomp]
## # Next check the exclude directory
## path = patharg
## while 1:
if self.edict.has_key(path):
if DEBUG:
print 'exclude', patharg, path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment