comparison mercurial/dispatch.py @ 9436:96379c93ba6f

improve code readability
author Andrey Somov <py4fun@gmail.com>
date Wed, 09 Sep 2009 11:12:36 +0200
parents 8e6019b16a7d
children 4c041f1ee1b4 02c43e8e0835
comparison
equal deleted inserted replaced
9435:aa92ce9586d8 9436:96379c93ba6f
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