##// END OF EJS Templates
hgignore: fix regression with hgignore directory matches (issue3921)...
Durham Goode -
r19128:f4930b53 stable
parent child Browse files
Show More
@@ -700,7 +700,7 b' class dirstate(object):'
700 for nf in iter(visit):
700 for nf in iter(visit):
701 # Report ignored items in the dmap as long as they are not
701 # Report ignored items in the dmap as long as they are not
702 # under a symlink directory.
702 # under a symlink directory.
703 if ignore(nf) and audit_path.check(nf):
703 if audit_path.check(nf):
704 try:
704 try:
705 results[nf] = lstat(join(nf))
705 results[nf] = lstat(join(nf))
706 except OSError:
706 except OSError:
@@ -124,3 +124,13 b' Check it does not ignore the current dir'
124 (?:(?:|.*/)[^/]*(?:/|$))
124 (?:(?:|.*/)[^/]*(?:/|$))
125
125
126 $ cd ..
126 $ cd ..
127
128 Check patterns that match only the directory
129
130 $ echo "^dir\$" > .hgignore
131 $ hg status
132 A dir/b.o
133 ? .hgignore
134 ? a.c
135 ? a.o
136 ? syntax
General Comments 0
You need to be logged in to leave comments. Login now