Mercurial > evolve
comparison tests/testlib/push-checkheads-util.sh @ 5227:b20d04641c0f stable
head-checking: ignore obsolete section when checking for single heads
This overwrite the core code that enforce single heads to ignore obsolete
section. That way older obsolete version of a branch no longer prevent the new
version to be pushed.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 11 Mar 2020 23:56:11 +0100 |
parents | 5a46f156c9b7 |
children | fa1324e58fcf |
comparison
equal
deleted
inserted
replaced
5226:1e0516ee4cb9 | 5227:b20d04641c0f |
---|---|
24 mkcommit root | 24 mkcommit root |
25 hg phase --public . | 25 hg phase --public . |
26 mkcommit A0 | 26 mkcommit A0 |
27 cd .. | 27 cd .. |
28 hg clone server client | 28 hg clone server client |
29 | |
30 if [ "$1" = "single-head" ]; then | |
31 echo >> "server/.hg/hgrc" "[experimental]" | |
32 echo >> "server/.hg/hgrc" "# enforce a single name per branch" | |
33 echo >> "server/.hg/hgrc" "single-head-per-branch = yes" | |
34 | |
35 echo >> "client/.hg/hgrc" "[ui]" | |
36 echo >> "client/.hg/hgrc" "# simpler log output" | |
37 echo >> "client/.hg/hgrc" 'logtemplate ="{node|short} [{branch}] ({phase}): {desc}\\n"' | |
38 fi | |
29 } | 39 } |