mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
ad813edcbd
Summary: Now that all our repos are treemanifest, let's enable the extension by default in tests. Once we're certain no one needs it in production we'll also make it the default in core Mercurial. This diff includes a minor fix in treemanifest to be aware of always-enabled extensions. It won't matter until we actually add treemanifest to the list of default enabled extensions, but I caught this while testing things. Reviewed By: ikostia Differential Revision: D15030253 fbshipit-source-id: d8361f915928b6ad90665e6ed330c1df5c8d8d86
39 lines
845 B
Perl
39 lines
845 B
Perl
$ setconfig extensions.treemanifest=!
|
|
$ hg init
|
|
$ echo a > a
|
|
$ hg ci -Am0
|
|
adding a
|
|
|
|
$ hg -q clone . foo
|
|
|
|
$ touch .hg/store/journal
|
|
|
|
$ echo foo > a
|
|
$ hg ci -Am0
|
|
abort: abandoned transaction found!
|
|
(run 'hg recover' to clean up transaction)
|
|
[255]
|
|
|
|
$ hg recover
|
|
rolling back interrupted transaction
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
1 files, 1 changesets, 1 total revisions
|
|
|
|
Check that zero-size journals are correctly aborted:
|
|
|
|
#if unix-permissions no-root
|
|
$ hg bundle -qa repo.hg
|
|
$ chmod -w foo/.hg/store/00changelog.i
|
|
|
|
$ hg -R foo unbundle repo.hg
|
|
adding changesets
|
|
abort: Permission denied: $TESTTMP/foo/.hg/store/.00changelog.i-* (glob)
|
|
[255]
|
|
|
|
$ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
|
|
#endif
|
|
|