Mercurial > hg
comparison tests/test-journal-exists.t @ 50292:adecb1ab4a0d stable
tests: add a rewriting step to detect EACCES errors
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Fri, 10 Mar 2023 18:20:19 +0000 |
parents | 2f2682f40ea0 |
children | dcaa2df1f688 |
comparison
equal
deleted
inserted
replaced
50291:862969b6c359 | 50292:adecb1ab4a0d |
---|---|
45 $ hg bundle -qa repo.hg | 45 $ hg bundle -qa repo.hg |
46 $ chmod -w foo/.hg/store/00changelog.i | 46 $ chmod -w foo/.hg/store/00changelog.i |
47 | 47 |
48 $ hg -R foo unbundle repo.hg | 48 $ hg -R foo unbundle repo.hg |
49 adding changesets | 49 adding changesets |
50 abort: Permission denied: '$TESTTMP/repo/foo/.hg/store/.00changelog.i-*' (glob) | 50 abort: $EACCES$: '$TESTTMP/repo/foo/.hg/store/.00changelog.i-*' (glob) |
51 [255] | 51 [255] |
52 | 52 |
53 $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi | 53 $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi |
54 #endif | 54 #endif |
55 | 55 |