##// END OF EJS Templates
When reloading the dirstate, recompute ignore information if needed.
Bryan O'Sullivan -
r4375:109077e7 default
parent child Browse files
Show More
@@ -231,6 +231,16 b' class dirstate(object):'
231 231 except IOError, err:
232 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 244 def copy(self, source, dest):
235 245 self.lazyread()
236 246 self.markdirty()
@@ -596,7 +596,7 b' class localrepository(repo.repository):'
596 596 self.ui.warn(_("no rollback information available\n"))
597 597
598 598 def wreload(self):
599 self.dirstate.read()
599 self.dirstate.reload()
600 600
601 601 def reload(self):
602 602 self.changelog.load()
General Comments 0
You need to be logged in to leave comments. Login now