equal
deleted
inserted
replaced
459 > |
459 > |
460 > from mercurial import error |
460 > from mercurial import error |
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', None) |
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') |
470 > if reason == 'unknown': |
479 > if reason == 'unknown': |
471 > bundler.newpart('test:unknown') |
480 > bundler.newpart('test:unknown') |