Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/dirstate.py @ 2006:ff8b39daa930
Show reason why an ignore file can't be read and state that it is skipped.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 25 Mar 2006 10:31:06 +0100 |
parents | bc47af2d3693 |
children | 11ffa1267185 |
comparison
equal
deleted
inserted
replaced
2005:bc47af2d3693 | 2006:ff8b39daa930 |
---|---|
84 for s in syntaxes.values(): | 84 for s in syntaxes.values(): |
85 if line.startswith(s): | 85 if line.startswith(s): |
86 pat = line | 86 pat = line |
87 break | 87 break |
88 pats[f].append(pat) | 88 pats[f].append(pat) |
89 except IOError: | 89 except IOError, inst: |
90 if f != repoignore: | 90 if f != repoignore: |
91 self.ui.warn(_("ignore file %s not found\n") % f) | 91 self.ui.warn(_("skipping unreadable ignore file" |
92 " '%s': %s\n") % (f, inst.strerror)) | |
92 return pats | 93 return pats |
93 | 94 |
94 def ignore(self, fn): | 95 def ignore(self, fn): |
95 '''default match function used by dirstate and | 96 '''default match function used by dirstate and |
96 localrepository. this honours the repository .hgignore file | 97 localrepository. this honours the repository .hgignore file |