mercurial/dispatch.py
changeset 9436 96379c93ba6f
parent 9411 8e6019b16a7d
child 9467 4c041f1ee1b4
child 9567 02c43e8e0835
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