Mercurial > hg-stable
changeset 8525:b169ba60eebe
mq: new method invalidate
Introduce method invalidate (similar to dirstate and repo).
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Tue, 05 May 2009 10:29:34 +0200 |
parents | 21c87b299a04 |
children | f78eadbb5769 |
files | hgext/mq.py |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Mon May 04 03:35:42 2009 +0200 +++ b/hgext/mq.py Tue May 05 10:29:34 2009 +0200 @@ -155,6 +155,15 @@ self.parse_series() return self.series_guards + def invalidate(self): + for a in 'applied full_series series series_guards'.split(): + if a in self.__dict__: + delattr(self, a) + self.applied_dirty = 0 + self.series_dirty = 0 + self.guards_dirty = False + self.active_guards = None + def diffopts(self): if self._diffopts is None: self._diffopts = patch.diffopts(self.ui)