diff -r 9947e6b008bb -r 5247260cee6a mercurial/commands.py --- a/mercurial/commands.py Wed Mar 10 21:14:24 2010 +0100 +++ b/mercurial/commands.py Wed Mar 10 21:21:15 2010 +0100 @@ -2886,7 +2886,7 @@ " accesslog errorlog webdir_conf certificate encoding") for o in optlist.split(): val = opts.get(o, '') - if val is None or val == '': # should check against default options instead + if val in (None, ''): # should check against default options instead continue baseui.setconfig("web", o, val) if repo and repo.ui != baseui: