Show More
@@ -335,7 +335,7 b' def _dispatch(ui, args):' | |||||
335 | path = _findrepo(os.getcwd()) or "" |
|
335 | path = _findrepo(os.getcwd()) or "" | |
336 | if not path: |
|
336 | if not path: | |
337 | lui = ui |
|
337 | lui = ui | |
338 | if path: |
|
338 | else: | |
339 | try: |
|
339 | try: | |
340 | lui = ui.copy() |
|
340 | lui = ui.copy() | |
341 | lui.readconfig(os.path.join(path, ".hg", "hgrc")) |
|
341 | lui.readconfig(os.path.join(path, ".hg", "hgrc")) |
@@ -40,4 +40,5 b' class repository(object):' | |||||
40 | url = self.url() |
|
40 | url = self.url() | |
41 | if url.endswith('/'): |
|
41 | if url.endswith('/'): | |
42 | return url + path |
|
42 | return url + path | |
43 | return url + '/' + path |
|
43 | else: | |
|
44 | return url + '/' + path |
@@ -199,7 +199,7 b' class ui(object):' | |||||
199 | def _path(self, loc): |
|
199 | def _path(self, loc): | |
200 | p = self.config('paths', loc) |
|
200 | p = self.config('paths', loc) | |
201 | if p and '%%' in p: |
|
201 | if p and '%%' in p: | |
202 |
self.warn(' |
|
202 | self.warn("(deprecated '%%' in path %s=%s from %s)\n" % | |
203 | (loc, p, self.configsource('paths', loc))) |
|
203 | (loc, p, self.configsource('paths', loc))) | |
204 | p = p.replace('%%', '%') |
|
204 | p = p.replace('%%', '%') | |
205 | return p |
|
205 | return p |
General Comments 0
You need to be logged in to leave comments.
Login now