##// 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 return False
407 return False
408
408
409 def _dirignore(self, f):
409 def _dirignore(self, f):
410 if f == '.':
411 return False
410 if self._ignore(f):
412 if self._ignore(f):
411 return True
413 return True
412 for c in strutil.findall(f, '/'):
414 for c in strutil.findall(f, '/'):
@@ -40,6 +40,10 b' echo "--" ; hg status 2>&1 | sed -e \'s/a'
40 echo ".*\.o" > .hgignore
40 echo ".*\.o" > .hgignore
41 echo "--" ; hg status
41 echo "--" ; hg status
42
42
43 # Check it does not ignore the current directory '.'
44 echo "^\." > .hgignore
45 echo "--" ; hg status
46
43 echo "glob:**.o" > .hgignore
47 echo "glob:**.o" > .hgignore
44 echo "--" ; hg status
48 echo "--" ; hg status
45
49
@@ -15,6 +15,12 b' A dir/b.o'
15 ? syntax
15 ? syntax
16 --
16 --
17 A dir/b.o
17 A dir/b.o
18 ? a.c
19 ? a.o
20 ? dir/c.o
21 ? syntax
22 --
23 A dir/b.o
18 ? .hgignore
24 ? .hgignore
19 ? a.c
25 ? a.c
20 ? syntax
26 ? syntax
General Comments 0
You need to be logged in to leave comments. Login now