Mercurial > evolve
view tests/test-options.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 | bf8638b5c526 |
children | f60f1ded1a20 |
line wrap: on
line source
$ cat >> $HGRCPATH <<EOF > [ui] > logtemplate={rev}:{node|short}[{bookmarks}] ({obsolete}/{phase}) {desc|firstline}\n > [extensions] > EOF $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH $ mkcommit() { > echo "$1" > "$1" > hg add "$1" > hg ci -m "add $1" > } $ hg init repo $ cd repo $ mkcommit a $ mkcommit b test disabling commands $ cat >> .hg/hgrc <<EOF > [experimental] > evolution=createmarkers > allowunstable > exchange > EOF $ hg prune hg: unknown command 'prune' (use 'hg help' for a list of commands) [10]