Show More
@@ -121,6 +121,7 b' def churn(ui, repo, *pats, **opts):' | |||||
121 |
|
121 | |||
122 | Such a file may be specified with the --aliases option, otherwise |
|
122 | Such a file may be specified with the --aliases option, otherwise | |
123 | a .hgchurn file will be looked for in the working directory root. |
|
123 | a .hgchurn file will be looked for in the working directory root. | |
|
124 | Aliases will be split from the rightmost "=". | |||
124 | ''' |
|
125 | ''' | |
125 | def pad(s, l): |
|
126 | def pad(s, l): | |
126 | return (s + " " * l)[:l] |
|
127 | return (s + " " * l)[:l] | |
@@ -132,7 +133,7 b' def churn(ui, repo, *pats, **opts):' | |||||
132 | if aliases: |
|
133 | if aliases: | |
133 | for l in open(aliases, "r"): |
|
134 | for l in open(aliases, "r"): | |
134 | try: |
|
135 | try: | |
135 | alias, actual = l.split('=' in l and '=' or None, 1) |
|
136 | alias, actual = l.rsplit('=' in l and '=' or None, 1) | |
136 | amap[alias.strip()] = actual.strip() |
|
137 | amap[alias.strip()] = actual.strip() | |
137 | except ValueError: |
|
138 | except ValueError: | |
138 | l = l.strip() |
|
139 | l = l.strip() |
General Comments 0
You need to be logged in to leave comments.
Login now