Show More
@@ -131,7 +131,7 def state(ctx: "context.changectx", ui: | |||||
131 | # extra escapes are needed because re.sub string decodes. |
|
131 | # extra escapes are needed because re.sub string decodes. | |
132 | repl = re.sub(br'\\\\([0-9]+)', br'\\\1', repl) |
|
132 | repl = re.sub(br'\\\\([0-9]+)', br'\\\1', repl) | |
133 | try: |
|
133 | try: | |
134 | src = re.sub(pattern, repl, src, 1) |
|
134 | src = re.sub(pattern, repl, src, count=1) | |
135 | except re.error as e: |
|
135 | except re.error as e: | |
136 | raise error.Abort( |
|
136 | raise error.Abort( | |
137 | _(b"bad subrepository pattern in %s: %s") |
|
137 | _(b"bad subrepository pattern in %s: %s") |
General Comments 0
You need to be logged in to leave comments.
Login now