Mercurial > hg
comparison mercurial/dirstate.py @ 4375:109077e7048d
When reloading the dirstate, recompute ignore information if needed.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 24 Apr 2007 12:02:51 -0700 |
parents | 9edc2d6f7c10 |
children | 30e7aa755efd |
comparison
equal
deleted
inserted
replaced
4374:9edc2d6f7c10 | 4375:109077e7048d |
---|---|
229 if st: | 229 if st: |
230 self.parse(st) | 230 self.parse(st) |
231 except IOError, err: | 231 except IOError, err: |
232 if err.errno != errno.ENOENT: raise | 232 if err.errno != errno.ENOENT: raise |
233 | 233 |
234 def reload(self): | |
235 def mtime(): | |
236 m = self.map and self.map.get('.hgignore') | |
237 return m and m[-1] | |
238 | |
239 old_mtime = self.ignorefunc and mtime() | |
240 self.read() | |
241 if old_mtime != mtime(): | |
242 self.ignorefunc = None | |
243 | |
234 def copy(self, source, dest): | 244 def copy(self, source, dest): |
235 self.lazyread() | 245 self.lazyread() |
236 self.markdirty() | 246 self.markdirty() |
237 self.copymap[dest] = source | 247 self.copymap[dest] = source |
238 | 248 |