diff mercurial/commands.py @ 5083:f94dbc6c7eaf

Fix hgwebdir after 9858477ed74cce9dc8f4069f9453a1bda0e13ba1 broke it.
author Eric Hopper <hopper@omnifarious.org>
date Wed, 08 Aug 2007 22:47:30 +0200
parents 73fdc8bd3ed8
children 64888ff907f4 06154aff2b1a
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Aug 07 15:56:26 2007 +0200
+++ b/mercurial/commands.py	Wed Aug 08 22:47:30 2007 +0200
@@ -2471,7 +2471,7 @@
     for o in optlist.split():
         if opts[o]:
             parentui.setconfig("web", o, str(opts[o]))
-            if repo.ui != parentui:
+            if (repo is not None) and (repo.ui != parentui):
                 repo.ui.setconfig("web", o, str(opts[o]))
 
     if repo is None and not ui.config("web", "webdir_conf"):