Mercurial > hg
changeset 14595:f2c9d4091e0e
mq: rename partial_name to partialname
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Mon, 13 Jun 2011 13:48:47 +0200 |
parents | 3752b5e1f4c4 |
children | 6a0070d00bc8 |
files | hgext/mq.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Mon Jun 13 13:47:21 2011 +0200 +++ b/hgext/mq.py Mon Jun 13 13:48:47 2011 +0200 @@ -1016,7 +1016,7 @@ def lookup(self, patch, strict=False): patch = patch and str(patch) - def partial_name(s): + def partialname(s): if s in self.series: return s matches = [x for x in self.series if s in x] @@ -1049,12 +1049,12 @@ return self.series[sno] if not strict: - res = partial_name(patch) + res = partialname(patch) if res: return res minus = patch.rfind('-') if minus >= 0: - res = partial_name(patch[:minus]) + res = partialname(patch[:minus]) if res: i = self.series.index(res) try: @@ -1066,7 +1066,7 @@ return self.series[i - off] plus = patch.rfind('+') if plus >= 0: - res = partial_name(patch[:plus]) + res = partialname(patch[:plus]) if res: i = self.series.index(res) try: