equal
deleted
inserted
replaced
267 path = _findrepo(os.getcwd()) or "" |
267 path = _findrepo(os.getcwd()) or "" |
268 if not path: |
268 if not path: |
269 lui = ui |
269 lui = ui |
270 if path: |
270 if path: |
271 try: |
271 try: |
272 lui = _ui.ui(parentui=ui) |
272 lui = ui.copy() |
273 lui.readconfig(os.path.join(path, ".hg", "hgrc")) |
273 lui.readconfig(os.path.join(path, ".hg", "hgrc")) |
274 except IOError: |
274 except IOError: |
275 pass |
275 pass |
276 |
276 |
277 # now we can expand paths, even ones in .hg/hgrc |
277 # now we can expand paths, even ones in .hg/hgrc |
278 rpath = _earlygetopt(["-R", "--repository", "--repo"], args) |
278 rpath = _earlygetopt(["-R", "--repository", "--repo"], args) |
279 if rpath: |
279 if rpath: |
280 path = lui.expandpath(rpath[-1]) |
280 path = lui.expandpath(rpath[-1]) |
281 lui = _ui.ui(parentui=ui) |
281 lui = ui.copy() |
282 lui.readconfig(os.path.join(path, ".hg", "hgrc")) |
282 lui.readconfig(os.path.join(path, ".hg", "hgrc")) |
283 |
283 |
284 extensions.loadall(lui) |
284 extensions.loadall(lui) |
285 for name, module in extensions.extensions(): |
285 for name, module in extensions.extensions(): |
286 if name in _loaded: |
286 if name in _loaded: |