# HG changeset patch # User Boris Feld # Date 1507929049 -7200 # Node ID 7c52a65010b1414244c9c787b4b93874b44b29dc # Parent 9223a437fdb621f5179f4bee8474ff49fdc562a1 configitems: register the test 'failpush.reason' config diff -r 9223a437fdb6 -r 7c52a65010b1 tests/test-bundle2-exchange.t --- a/tests/test-bundle2-exchange.t Fri Oct 13 23:07:12 2017 +0200 +++ b/tests/test-bundle2-exchange.t Fri Oct 13 23:10:49 2017 +0200 @@ -461,9 +461,18 @@ > from mercurial import bundle2 > from mercurial import exchange > from mercurial import extensions + > from mercurial import registrar + > cmdtable = {} + > command = registrar.command(cmdtable) + > + > configtable = {} + > configitem = registrar.configitem(configtable) + > configitem('failpush', 'reason', + > default=None, + > ) > > def _pushbundle2failpart(pushop, bundler): - > reason = pushop.ui.config('failpush', 'reason', None) + > reason = pushop.ui.config('failpush', 'reason') > part = None > if reason == 'abort': > bundler.newpart('test:abort')