changeset 2390:8d31c71e8148

merge with crew.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Thu, 01 Jun 2006 15:55:09 -0700
parents 609c56df709a (current diff) 62ce297f214f (diff)
children d351a3be3371
files mercurial/ui.py
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/hgrc.5.txt	Thu Jun 01 15:54:54 2006 -0700
+++ b/doc/hgrc.5.txt	Thu Jun 01 15:55:09 2006 -0700
@@ -165,6 +165,14 @@
   the path to the ".py" file (including the file name extension) that
   defines the extension.
 
+  Example for ~/.hgrc:
+
+    [extensions]
+    # (the mq extension will get loaded from mercurial's path)
+    hgext.mq =
+    # (this extension will get loaded from the file specified)
+    myfeature = ~/.hgext/myfeature.py
+
 hooks::
   Commands or Python functions that get automatically executed by
   various actions such as starting or finishing a commit. Multiple
--- a/mercurial/ui.py	Thu Jun 01 15:54:54 2006 -0700
+++ b/mercurial/ui.py	Thu Jun 01 15:55:09 2006 -0700
@@ -142,7 +142,10 @@
                 yield parent
 
     def extensions(self):
-        return self.configitems("extensions")
+        ret = self.configitems("extensions")
+        for i, (k, v) in enumerate(ret):
+            if v: ret[i] = (k, os.path.expanduser(v))
+        return ret
 
     def hgignorefiles(self):
         ret = []