##// END OF EJS Templates
dirstate: do not ignore current directory '.' (issue 1078)
Patrick Mezard -
r6479:31abcae3 default
parent child Browse files
Show More
@@ -407,6 +407,8 b' class dirstate(object):'
407 407 return False
408 408
409 409 def _dirignore(self, f):
410 if f == '.':
411 return False
410 412 if self._ignore(f):
411 413 return True
412 414 for c in strutil.findall(f, '/'):
@@ -40,6 +40,10 b' echo "--" ; hg status 2>&1 | sed -e \'s/a'
40 40 echo ".*\.o" > .hgignore
41 41 echo "--" ; hg status
42 42
43 # Check it does not ignore the current directory '.'
44 echo "^\." > .hgignore
45 echo "--" ; hg status
46
43 47 echo "glob:**.o" > .hgignore
44 48 echo "--" ; hg status
45 49
@@ -15,6 +15,12 b' A dir/b.o'
15 15 ? syntax
16 16 --
17 17 A dir/b.o
18 ? a.c
19 ? a.o
20 ? dir/c.o
21 ? syntax
22 --
23 A dir/b.o
18 24 ? .hgignore
19 25 ? a.c
20 26 ? syntax
General Comments 0
You need to be logged in to leave comments. Login now