diff 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
line wrap: on
line diff
--- a/mercurial/dispatch.py	Thu Sep 10 10:31:12 2009 +0200
+++ b/mercurial/dispatch.py	Wed Sep 09 11:12:36 2009 +0200
@@ -335,7 +335,7 @@
     path = _findrepo(os.getcwd()) or ""
     if not path:
         lui = ui
-    if path:
+    else:
         try:
             lui = ui.copy()
             lui.readconfig(os.path.join(path, ".hg", "hgrc"))