ui: fix error, base can not be a list
authorSimon Heimberg <simohe@besonet.ch>
Sat, 23 Jul 2011 06:08:49 +0200
changeset 14922 1bc970a77977
parent 14921 e259375459d6
child 14923 351624f8f523
ui: fix error, base can not be a list
mercurial/ui.py
--- a/mercurial/ui.py	Sat Jul 23 11:52:25 2011 -0500
+++ b/mercurial/ui.py	Sat Jul 23 06:08:49 2011 +0200
@@ -169,7 +169,7 @@
         if not os.path.isabs(v) or "://" not in v:
             src = self.configsource(section, name, untrusted)
             if ':' in src:
-                base = os.path.dirname(src.rsplit(':'))
+                base = os.path.dirname(src.rsplit(':')[0])
                 v = os.path.join(base, os.path.expanduser(v))
         return v