Show More
@@ -63,6 +63,7 command = cmdutil.command(cmdtable) | |||
|
63 | 63 | # leave the attribute unspecified. |
|
64 | 64 | testedwith = 'ships-with-hg-core' |
|
65 | 65 | |
|
66 | _partre = re.compile(r'\{(\d+)\}'.encode(u'latin1')) | |
|
66 | 67 | |
|
67 | 68 | class ShortRepository(object): |
|
68 | 69 | def __init__(self, url, scheme, templater): |
@@ -70,7 +71,7 class ShortRepository(object): | |||
|
70 | 71 | self.templater = templater |
|
71 | 72 | self.url = url |
|
72 | 73 | try: |
|
73 |
self.parts = max(map(int, re.findall( |
|
|
74 | self.parts = max(map(int, _partre.findall(self.url))) | |
|
74 | 75 | except ValueError: |
|
75 | 76 | self.parts = 0 |
|
76 | 77 |
General Comments 0
You need to be logged in to leave comments.
Login now