sapling/hgext
Yuya Nishihara 61b45241f5 zeroconf: forward all arguments passed to ui.configitems() wrapper
cf6cc5344afa added 'ignoresub' argument to ui.configitems(), but zeroconf
wrapper wasn't updated. It caused the following crash:

  Traceback (most recent call last):
    File "bin/hg", line 43, in <module>
      mercurial.dispatch.run()
    File "lib/python/mercurial/dispatch.py", line 54, in run
      sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
    File "lib/python/mercurial/dispatch.py", line 120, in dispatch
      ret = _runcatch(req)
    File "lib/python/mercurial/dispatch.py", line 191, in _runcatch
      return _dispatch(req)
    File "lib/python/mercurial/dispatch.py", line 924, in _dispatch
      cmdpats, cmdoptions)
    File "lib/python/mercurial/dispatch.py", line 681, in runcommand
      ret = _runcommand(ui, options, cmd, d)
    File "lib/python/mercurial/extensions.py", line 195, in closure
      return func(*(args + a), **kw)
    File "lib/python/hgext/zeroconf/__init__.py", line 180, in cleanupafterdispatch
      return orig(ui, options, cmd, cmdfunc)
    File "lib/python/mercurial/dispatch.py", line 1055, in _runcommand
      return checkargs()
    File "lib/python/mercurial/dispatch.py", line 1015, in checkargs
      return cmdfunc()
    File "lib/python/mercurial/dispatch.py", line 921, in <lambda>
      d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
    File "lib/python/mercurial/util.py", line 991, in check
      return func(*args, **kwargs)
    File "lib/python/mercurial/commands.py", line 5405, in paths
      pathitems = sorted(ui.paths.iteritems())
    File "lib/python/mercurial/util.py", line 723, in __get__
      result = self.func(obj)
    File "lib/python/mercurial/ui.py", line 619, in paths
      return paths(self)
    File "lib/python/mercurial/ui.py", line 1099, in __init__
      for name, loc in ui.configitems('paths', ignoresub=True):
    File "lib/python/mercurial/extensions.py", line 195, in closure
      return func(*(args + a), **kw)
  TypeError: configitems() got an unexpected keyword argument 'ignoresub'

We have no test coverage for zeroconf, so I've added a minimal test that
could reproduce this problem.
2016-02-10 22:53:17 +09:00
..
convert with: use context manager for transaction in mercurial_sink 2016-01-15 13:14:47 -08:00
highlight cleanup: remove superfluous space after space after equals (python) 2015-12-31 08:16:59 +00:00
largefiles largefiles: prevent committing a missing largefile 2016-01-24 00:10:19 -05:00
zeroconf zeroconf: forward all arguments passed to ui.configitems() wrapper 2016-02-10 22:53:17 +09:00
__init__.py Re-add hgext/__init__.py 2005-09-29 12:49:01 -07:00
acl.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
blackbox.py blackbox: add pid to output 2015-09-07 11:31:44 -07:00
bugzilla.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
censor.py censor: make censor acquire locks before processing 2015-12-09 08:28:53 +09:00
chgserver.py chgserver: mark as a built-in extension 2015-12-23 22:37:24 +09:00
children.py children: update help with replacement 2016-01-06 17:18:18 +00:00
churn.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
clonebundles.py clonebundles: improve BUNDLESPEC documentation 2016-01-14 22:50:55 -08:00
color.py color: drop useless override of ui.popbuffer() 2015-12-05 23:41:11 +09:00
eol.py eol: make output stable 2015-12-27 23:55:54 +09:00
extdiff.py extdiff: factor out list of common options 2016-01-04 22:13:46 +09:00
factotum.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
fetch.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
gpg.py with: use context manager for wlock in sign 2016-01-15 13:14:46 -08:00
graphlog.py graphlog: update help with replacement 2016-01-06 17:17:49 +00:00
hgcia.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
hgk.py hgk: tweak doc format for path option 2015-06-25 17:37:14 -05:00
histedit.py histedit: fix typo in documentation 2016-02-03 11:01:11 -02:00
keyword.py with: use context manager for wlock in kw_dorecord 2016-01-15 13:14:46 -08:00
mq.py mq: check for reserved patch name with qimport -r (issue5033) 2016-01-19 06:00:59 +01:00
notify.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
pager.py pager: improve help for --pager= 2015-11-30 18:47:33 +00:00
patchbomb.py patchbomb: replace file I/O with util.readfile 2016-01-12 15:57:18 -08:00
purge.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
rebase.py rebase: update working directory when aborting (issue5084) 2016-02-05 01:56:46 +00:00
record.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
relink.py l10n: use %d instead of %s for numbers 2015-10-14 22:29:03 -04:00
schemes.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
share.py share: pass named arguments 2015-12-12 22:07:40 -05:00
shelve.py shelve: use cg3 for treemanifests 2016-01-19 15:37:07 -08:00
strip.py with: use a context manager for transaction in strip 2016-01-15 13:14:50 -08:00
transplant.py with: use context manager for wlock in transplant 2016-01-15 13:14:47 -08:00
win32mbcs.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
win32text.py urls: bulk-change primary website URLs 2015-09-30 15:43:49 -05:00