equal
deleted
inserted
replaced
333 |
333 |
334 # read the local repository .hgrc into a local ui object |
334 # read the local repository .hgrc into a local ui object |
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")) |
342 except IOError: |
342 except IOError: |
343 pass |
343 pass |