Mercurial > evolve
view tests/test-share.t @ 5511:80b5d4b85a52 stable
tests: add test showing that `hg uncommit --rev` can fail to mark file added
The test case modified in this commit uses `hg uncommit --rev 0 b` to
revert the parent commit's state to revision 0 where file `b` doesn't
exist. The file is still tracked in the dirstate (correctly, since `hg
uncommit` should not affected the tracked-ness), so `hg status` should
report it as added. However, as the calls added in this patch shows,
it gets reported as modified instead.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 03 Sep 2020 09:21:58 -0700 |
parents | 6c0992ce05f7 |
children |
line wrap: on
line source
Test that share-clones use the cache in the original repository. $ . $TESTDIR/testlib/common.sh $ hg init share-base $ cd share-base/ $ cat >> .hg/hgrc <<EOF > [extensions] > evolve= > share= > EOF $ hg debugbuilddag .+3:branchpoint+4*branchpoint+2 $ cd .. $ hg --config extensions.share= share -U share-base share-client $ cd share-client $ hg debugupdatecache $ test -d .hg/cache [1] $ test -d ../share-base/.hg/cache