##// END OF EJS Templates
fix a bug in dirstate.changes when cwd != repo.root...
Benoit Boissinot -
r1491:91c0e8d7 default
parent child Browse files
Show More
@@ -380,7 +380,8 b' class dirstate:'
380 nonexistent = True
380 nonexistent = True
381 if not st:
381 if not st:
382 try:
382 try:
383 st = os.lstat(fn)
383 f = os.path.join(self.root, fn)
384 st = os.lstat(f)
384 except OSError, inst:
385 except OSError, inst:
385 if inst.errno != errno.ENOENT:
386 if inst.errno != errno.ENOENT:
386 raise
387 raise
@@ -40,3 +40,6 b' echo "--" ; hg status'
40
40
41 echo "relglob:*" > .hgignore
41 echo "relglob:*" > .hgignore
42 echo "--" ; hg status
42 echo "--" ; hg status
43
44 cd dir
45 echo "--" ; hg status
@@ -32,3 +32,5 b' A dir/b.o'
32 ? dir/c.o
32 ? dir/c.o
33 --
33 --
34 A dir/b.o
34 A dir/b.o
35 --
36 A b.o
General Comments 0
You need to be logged in to leave comments. Login now