equal
deleted
inserted
replaced
413 *** runcommand phase . |
413 *** runcommand phase . |
414 5: public |
414 5: public |
415 *** runcommand branches |
415 *** runcommand branches |
416 default 1:731265503d86 |
416 default 1:731265503d86 |
417 |
417 |
|
418 in-memory cache must be reloaded if transaction is aborted. otherwise |
|
419 changelog and manifest would have invalid node: |
|
420 |
|
421 $ echo a >> a |
|
422 >>> from hgclient import readchannel, runcommand, check |
|
423 >>> @check |
|
424 ... def txabort(server): |
|
425 ... readchannel(server) |
|
426 ... runcommand(server, ['commit', '--config', 'hooks.pretxncommit=false', |
|
427 ... '-mfoo']) |
|
428 ... runcommand(server, ['verify']) |
|
429 *** runcommand commit --config hooks.pretxncommit=false -mfoo |
|
430 transaction abort! |
|
431 rollback completed |
|
432 abort: pretxncommit hook exited with status 1 |
|
433 [255] |
|
434 *** runcommand verify |
|
435 checking changesets |
|
436 checking manifests |
|
437 crosschecking files in changesets and manifests |
|
438 checking files |
|
439 1 files, 2 changesets, 2 total revisions |
|
440 $ hg revert --no-backup -aq |
|
441 |
418 $ cat >> .hg/hgrc << EOF |
442 $ cat >> .hg/hgrc << EOF |
419 > [experimental] |
443 > [experimental] |
420 > evolution=createmarkers |
444 > evolution=createmarkers |
421 > EOF |
445 > EOF |
422 |
446 |