diff -r dc2e512cb89a -r f94dbc6c7eaf mercurial/commands.py --- 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"):