Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

patchctx: add an invalidate method

This function will ensure the patch context is re-read from disk the next time
the context is rebuilt.

Changeset 481890bf23b6

Parent 70f960aa9be9

by Steve Borho

Changes to one file · Browse files at 481890bf23b6 Showing diff from parent 70f960aa9be9 Diff from another changeset...

 
62
63
64
 
 
 
 
65
66
67
 
62
63
64
65
66
67
68
69
70
71
@@ -62,6 +62,10 @@
  self._date = ph.date and util.parsedate(ph.date) or util.makedate()   self._desc = ph.message and '\n'.join(ph.message).strip() or ''   + def invalidate(self): + # ensure the patch contents are re-read + self._mtime = 0 +   def __contains__(self, key):   return key in self._files