# HG changeset patch # User Adrian Buehlmann # Date 1307958865 -7200 # Node ID 12fba7bcb4f157671e8fdcbf584520722b27c87e # Parent d590ff1f22b215c9625874f3f7d13e841bd4bc62 mq: rename find_series to findseries diff -r d590ff1f22b2 -r 12fba7bcb4f1 hgext/mq.py --- a/hgext/mq.py Mon Jun 13 11:40:27 2011 +0200 +++ b/hgext/mq.py Mon Jun 13 11:54:25 2011 +0200 @@ -360,7 +360,7 @@ def join(self, *p): return os.path.join(self.path, *p) - def find_series(self, patch): + def findseries(self, patch): def matchpatch(l): l = l.split('#', 1)[0] return l.strip() == patch @@ -746,7 +746,7 @@ unknown = [] - for (i, p) in sorted([(self.find_series(p), p) for p in patches], + for (i, p) in sorted([(self.findseries(p), p) for p in patches], reverse=True): if i is not None: del self.fullseries[i] @@ -1696,7 +1696,7 @@ def full_series_end(self): if self.applied: p = self.applied[-1].name - end = self.find_series(p) + end = self.findseries(p) if end is None: return len(self.fullseries) return end + 1 @@ -2451,7 +2451,7 @@ if patch is None: raise util.Abort(_('no patch to work with')) if args or opts.get('none'): - idx = q.find_series(patch) + idx = q.findseries(patch) if idx is None: raise util.Abort(_('no patch named %s') % patch) q.set_guards(idx, args) @@ -2593,7 +2593,7 @@ q.checkpatchname(name) ui.note(_('renaming %s to %s\n') % (patch, name)) - i = q.find_series(patch) + i = q.findseries(patch) guards = q.guard_re.findall(q.fullseries[i]) q.fullseries[i] = name + ''.join([' #' + g for g in guards]) q.parse_series()