##// END OF EJS Templates
dirstate: report bad subdirectories as match.bad, not just a warning (BC)...
Mads Kiilerich -
r21116:30c60e28 default
parent child Browse files
Show More
@@ -637,10 +637,6 b' class dirstate(object):'
637 # implementation doesn't use it at all. This satisfies the contract
637 # implementation doesn't use it at all. This satisfies the contract
638 # because we only guarantee a "maybe".
638 # because we only guarantee a "maybe".
639
639
640 def fwarn(f, msg):
641 self._ui.warn('%s: %s\n' % (self.pathto(f), msg))
642 return False
643
644 if ignored:
640 if ignored:
645 ignore = util.never
641 ignore = util.never
646 dirignore = util.never
642 dirignore = util.never
@@ -695,7 +691,7 b' class dirstate(object):'
695 entries = listdir(join(nd), stat=True, skip=skip)
691 entries = listdir(join(nd), stat=True, skip=skip)
696 except OSError, inst:
692 except OSError, inst:
697 if inst.errno in (errno.EACCES, errno.ENOENT):
693 if inst.errno in (errno.EACCES, errno.ENOENT):
698 fwarn(nd, inst.strerror)
694 match.bad(self.pathto(nd), inst.strerror)
699 continue
695 continue
700 raise
696 raise
701 for f, kind, st in entries:
697 for f, kind, st in entries:
General Comments 0
You need to be logged in to leave comments. Login now