hgext/churn.py
changeset 19464 68f7129af6a8
parent 18369 2150e70c0ee1
child 19959 9ef92384415c
--- a/hgext/churn.py	Sun Jul 14 05:35:04 2013 +0400
+++ b/hgext/churn.py	Wed Jul 17 10:40:40 2013 -0400
@@ -121,6 +121,7 @@
 
     Such a file may be specified with the --aliases option, otherwise
     a .hgchurn file will be looked for in the working directory root.
+    Aliases will be split from the rightmost "=".
     '''
     def pad(s, l):
         return (s + " " * l)[:l]
@@ -132,7 +133,7 @@
     if aliases:
         for l in open(aliases, "r"):
             try:
-                alias, actual = l.split('=' in l and '=' or None, 1)
+                alias, actual = l.rsplit('=' in l and '=' or None, 1)
                 amap[alias.strip()] = actual.strip()
             except ValueError:
                 l = l.strip()