Show More
@@ -461,9 +461,18 b' Setting up' | |||||
461 | > from mercurial import bundle2 |
|
461 | > from mercurial import bundle2 | |
462 | > from mercurial import exchange |
|
462 | > from mercurial import exchange | |
463 | > from mercurial import extensions |
|
463 | > from mercurial import extensions | |
|
464 | > from mercurial import registrar | |||
|
465 | > cmdtable = {} | |||
|
466 | > command = registrar.command(cmdtable) | |||
|
467 | > | |||
|
468 | > configtable = {} | |||
|
469 | > configitem = registrar.configitem(configtable) | |||
|
470 | > configitem('failpush', 'reason', | |||
|
471 | > default=None, | |||
|
472 | > ) | |||
464 | > |
|
473 | > | |
465 | > def _pushbundle2failpart(pushop, bundler): |
|
474 | > def _pushbundle2failpart(pushop, bundler): | |
466 |
> reason = pushop.ui.config('failpush', 'reason' |
|
475 | > reason = pushop.ui.config('failpush', 'reason') | |
467 | > part = None |
|
476 | > part = None | |
468 | > if reason == 'abort': |
|
477 | > if reason == 'abort': | |
469 | > bundler.newpart('test:abort') |
|
478 | > bundler.newpart('test:abort') |
General Comments 0
You need to be logged in to leave comments.
Login now