mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
945a516c74
Summary: This fixes various tests on Windows. Many of these fixes were ported from upstream. Reviewed By: markbt Differential Revision: D27174617 fbshipit-source-id: b9f36ad0714793f2b76db32c1d840284b744a841
41 lines
795 B
Perl
41 lines
795 B
Perl
#chg-compatible
|
|
|
|
$ disable treemanifest
|
|
$ newrepo repo
|
|
$ 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
|
|
|
|
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
|
|
|
|
XXX: This can be a better error message.
|
|
|
|
$ hg -R foo unbundle repo.hg
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 0 changesets with 0 changes to 1 files
|
|
abort: Permission denied (os error 13)
|
|
[255]
|
|
|
|
$ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
|
|
#endif
|
|
|