Mercurial > hg-stable
changeset 14593:599a72895c0d
mq: rename series_dirty to seriesdirty
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Mon, 13 Jun 2011 13:45:48 +0200 |
parents | fc94add69d9f |
children | 3752b5e1f4c4 |
files | hgext/mq.py |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Mon Jun 13 13:44:34 2011 +0200 +++ b/hgext/mq.py Mon Jun 13 13:45:48 2011 +0200 @@ -268,7 +268,7 @@ self.opener = scmutil.opener(self.path) self.ui = ui self.applieddirty = 0 - self.series_dirty = 0 + self.seriesdirty = 0 self.added = [] self.seriespath = "series" self.statuspath = "status" @@ -322,7 +322,7 @@ if a in self.__dict__: delattr(self, a) self.applieddirty = 0 - self.series_dirty = 0 + self.seriesdirty = 0 self.guardsdirty = False self.activeguards = None @@ -444,7 +444,7 @@ drop = self.guard_re.sub('', self.fullseries[idx]) self.fullseries[idx] = drop + ''.join([' #' + g for g in guards]) self.parseseries() - self.series_dirty = True + self.seriesdirty = True def pushable(self, idx): if isinstance(idx, str): @@ -497,7 +497,7 @@ fp.close() if self.applieddirty: write_list(map(str, self.applied), self.statuspath) - if self.series_dirty: + if self.seriesdirty: write_list(self.fullseries, self.seriespath) if self.guardsdirty: write_list(self.activeguards, self.guardspath) @@ -764,7 +764,7 @@ raise util.Abort(''.join(msg % p for p in unknown)) self.parseseries() - self.series_dirty = 1 + self.seriesdirty = 1 def _revpatches(self, repo, revs): firstrev = repo[self.applied[0].node].rev() @@ -948,7 +948,7 @@ self.fullseries[insert:insert] = [patchfn] self.applied.append(statusentry(n, patchfn)) self.parseseries() - self.series_dirty = 1 + self.seriesdirty = 1 self.applieddirty = 1 if msg: msg = msg + "\n\n" @@ -1160,7 +1160,7 @@ del self.fullseries[index] self.fullseries.insert(start, fullpatch) self.parseseries() - self.series_dirty = 1 + self.seriesdirty = 1 self.applieddirty = 1 if start > 0: @@ -1641,7 +1641,7 @@ self.fullseries = series self.applied = applied self.parseseries() - self.series_dirty = 1 + self.seriesdirty = 1 self.applieddirty = 1 heads = repo.changelog.heads() if delete: @@ -1802,7 +1802,7 @@ patchname = None self.parseseries() self.applieddirty = 1 - self.series_dirty = True + self.seriesdirty = True for i, filename in enumerate(files): if existing: @@ -1847,7 +1847,7 @@ index = self.fullseriesend() + i self.fullseries[index:index] = [patchname] self.parseseries() - self.series_dirty = True + self.seriesdirty = True self.ui.warn(_("adding %s to series file\n") % patchname) self.added.append(patchname) patchname = None @@ -2597,7 +2597,7 @@ guards = q.guard_re.findall(q.fullseries[i]) q.fullseries[i] = name + ''.join([' #' + g for g in guards]) q.parseseries() - q.series_dirty = 1 + q.seriesdirty = 1 info = q.isapplied(patch) if info: