Show More
@@ -461,9 +461,18 b' Setting up' | |||
|
461 | 461 | > from mercurial import bundle2 |
|
462 | 462 | > from mercurial import exchange |
|
463 | 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 | 474 | > def _pushbundle2failpart(pushop, bundler): |
|
466 |
> reason = pushop.ui.config('failpush', 'reason' |
|
|
475 | > reason = pushop.ui.config('failpush', 'reason') | |
|
467 | 476 | > part = None |
|
468 | 477 | > if reason == 'abort': |
|
469 | 478 | > bundler.newpart('test:abort') |
General Comments 0
You need to be logged in to leave comments.
Login now