comparison mercurial/hgweb/hgwebdir_mod.py @ 33328:c8f212cb0c83

hgweb: use ui._unset to prevent a warning in configitems
author David Demelier <demelier.david@gmail.com>
date Mon, 03 Jul 2017 13:04:35 +0200
parents eede022fc142
children 734983de2291 d5b2beca16c0
comparison
equal deleted inserted replaced
33327:68b7ceda99d7 33328:c8f212cb0c83
402 try: 402 try:
403 u.readconfig(os.path.join(path, '.hg', 'hgrc')) 403 u.readconfig(os.path.join(path, '.hg', 'hgrc'))
404 except Exception as e: 404 except Exception as e:
405 u.warn(_('error reading %s/.hg/hgrc: %s\n') % (path, e)) 405 u.warn(_('error reading %s/.hg/hgrc: %s\n') % (path, e))
406 continue 406 continue
407 def get(section, name, default=None): 407 def get(section, name, default=uimod._unset):
408 return u.config(section, name, default, untrusted=True) 408 return u.config(section, name, default, untrusted=True)
409 409
410 if u.configbool("web", "hidden", untrusted=True): 410 if u.configbool("web", "hidden", untrusted=True):
411 continue 411 continue
412 412