mercurial/dirstate.py
changeset 2006 ff8b39daa930
parent 2005 bc47af2d3693
child 2008 11ffa1267185
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