Show More
@@ -165,6 +165,14 b' extensions::' | |||||
165 | the path to the ".py" file (including the file name extension) that |
|
165 | the path to the ".py" file (including the file name extension) that | |
166 | defines the extension. |
|
166 | defines the extension. | |
167 |
|
167 | |||
|
168 | Example for ~/.hgrc: | |||
|
169 | ||||
|
170 | [extensions] | |||
|
171 | # (the mq extension will get loaded from mercurial's path) | |||
|
172 | hgext.mq = | |||
|
173 | # (this extension will get loaded from the file specified) | |||
|
174 | myfeature = ~/.hgext/myfeature.py | |||
|
175 | ||||
168 | hooks:: |
|
176 | hooks:: | |
169 | Commands or Python functions that get automatically executed by |
|
177 | Commands or Python functions that get automatically executed by | |
170 | various actions such as starting or finishing a commit. Multiple |
|
178 | various actions such as starting or finishing a commit. Multiple |
@@ -142,7 +142,10 b' class ui(object):' | |||||
142 | yield parent |
|
142 | yield parent | |
143 |
|
143 | |||
144 | def extensions(self): |
|
144 | def extensions(self): | |
145 |
ret |
|
145 | ret = self.configitems("extensions") | |
|
146 | for i, (k, v) in enumerate(ret): | |||
|
147 | if v: ret[i] = (k, os.path.expanduser(v)) | |||
|
148 | return ret | |||
146 |
|
149 | |||
147 | def hgignorefiles(self): |
|
150 | def hgignorefiles(self): | |
148 | ret = [] |
|
151 | ret = [] |
General Comments 0
You need to be logged in to leave comments.
Login now