view tests/test-share.t @ 6223:4298ae0b966d stable

evolve: don't update wdir when --dry-run is given (issue6669) What _cleanup() should've been called, perhaps, is _update(). Because it updates working copy to either headnode or a successor of startnode. And yes, it performs an update even when shouldupdate is False. So when --dry-run is given, we should simply avoid calling _cleanup().
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 09 Apr 2022 20:49:43 +0300
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