##// END OF EJS Templates
dirstate.walk: skip unreadable directories (issue1213)...
Benoit Boissinot -
r7099:6f750e76 default
parent child Browse files
Show More
@@ -492,11 +492,18 b' class dirstate(object):'
492 492 nd = work.pop()
493 493 if hasattr(match, 'dir'):
494 494 match.dir(nd)
495 skip = None
495 496 if nd == '.':
496 497 nd = ''
497 entries = listdir(join(nd), stat=True)
498 498 else:
499 entries = listdir(join(nd), stat=True, skip ='.hg')
499 skip = '.hg'
500 try:
501 entries = listdir(join(nd), stat=True, skip=skip)
502 except OSError, inst:
503 if inst.errno == errno.EACCES:
504 fwarn(nd, inst.strerror)
505 continue
506 raise
500 507 for f, kind, st in entries:
501 508 nf = normalize(nd and (nd + "/" + f) or f, True)
502 509 if nf not in results:
@@ -16,3 +16,10 b' hg commit -m "2" -d "1000000 0" 2>/dev/n'
16 16 chmod -w .
17 17 hg diff --nodates
18 18 chmod +w .
19
20 chmod +w .hg/store/data/a.i
21 mkdir dir
22 touch dir/a
23 hg status
24 chmod -rx dir
25 hg status
@@ -20,3 +20,7 b' diff -r c1fab96507ef a'
20 20 @@ -1,1 +1,1 @@
21 21 -foo
22 22 +barber
23 M a
24 ? dir/a
25 dir: Permission denied
26 M a
General Comments 0
You need to be logged in to leave comments. Login now