# HG changeset patch # User Adrian Buehlmann # Date 1307959418 -7200 # Node ID da40ee1adc2bab056d6dec61aabfd44ab5fcbfa7 # Parent 92101ea35015ce7163d9c022d53fb97884d08dd3 mq: rename check_toppatch to checktoppatch diff -r 92101ea35015 -r da40ee1adc2b hgext/mq.py --- a/hgext/mq.py Mon Jun 13 12:02:14 2011 +0200 +++ b/hgext/mq.py Mon Jun 13 12:03:38 2011 +0200 @@ -823,7 +823,7 @@ self._cleanup(realpatches, numrevs, opts.get('keep')) - def check_toppatch(self, repo): + def checktoppatch(self, repo): if self.applied: top = self.applied[-1].node patch = self.applied[-1].name @@ -912,7 +912,7 @@ if len(repo[None].parents()) > 1: raise util.Abort(_('cannot manage merge changesets')) commitfiles = m + a + r - self.check_toppatch(repo) + self.checktoppatch(repo) insert = self.full_series_end() wlock = repo.wlock() try: @@ -1164,7 +1164,7 @@ self.applied_dirty = 1 if start > 0: - self.check_toppatch(repo) + self.checktoppatch(repo) if not patch: patch = self.series[start] end = start + 1 @@ -1269,7 +1269,7 @@ end = len(self.applied) rev = self.applied[start].node if update: - top = self.check_toppatch(repo)[0] + top = self.checktoppatch(repo)[0] try: heads = repo.changelog.heads(rev) @@ -1319,7 +1319,7 @@ wlock.release() def diff(self, repo, pats, opts): - top, patch = self.check_toppatch(repo) + top, patch = self.checktoppatch(repo) if not top: self.ui.write(_("no patches applied\n")) return @@ -1343,7 +1343,7 @@ wlock = repo.wlock() try: - self.check_toppatch(repo) + self.checktoppatch(repo) (top, patchfn) = (self.applied[-1].node, self.applied[-1].name) if repo.changelog.heads(top) != [top]: raise util.Abort(_("cannot refresh a revision with children")) @@ -2324,7 +2324,7 @@ if not files: raise util.Abort(_('qfold requires at least one patch name')) - if not q.check_toppatch(repo)[0]: + if not q.checktoppatch(repo)[0]: raise util.Abort(_('no patches applied')) q.check_localchanges(repo)