Les instructions de création des branches pérennnes
Situation de départ
- Le dépôt build_xml est créé sur le serveur de révisions.
- Il y a déjà deux révisions (changesets) dans la branche
default
. - La deuxième révision contient un fichier
build.xml
vide.
- script1.sh
rm -rf build_xml hg clone http://192.168.108.111:8080/scm/hg/build_xml/ build_xml ls ls -al build_xml pwd ls -al build_xml/.hg cd build_xml echo "[ui] username = daniele <daniele.hiot@lycee.jb> [extensions] graphlog= [phases] publish = False [web] encoding = UTF-8 " > ./.hg/hgrc ls -al .hg cat .hg/hgrc hg log touch LISEZMOI.txt ls -al hg add LISEZMOI.txt hg commit -m "LISEZMOI.txt vide" hg branch stable echo "-- Demo branches – " >>LISEZMOI.txt hg commit -m "LISEZMOI.txt avec titre" hg branches hg tags hg tag V0.01 hg tags hg log hg log –style compact hg update default hg branch maintenance hg commit -m "ajout branche maintenance" hg update default hg branch prep-release hg commit -m "ajout branche prep-release" hg glog hg glog --style compact echo '-- Il y avait un bug dans le fichier LISEZMOI.txt --' hg update maintenance hg merge stable hg commit -m "fusion stable dans maintenance" echo '-- Ajout dans LISEZMOI.txt --' echo "-- Création des Branches dans le dépôt -- " >>LISEZMOI.txt hg commit -m "Modification du fichier LISEZMOI.txt dans branche maintenance" hg update stable hg merge maintenance hg commit -m "Fusion de maintenance dans stable LISEZMOI.txt precise le workflow" hg tag V0.1.1 hg update default hg merge stable hg status hg commit -m "Fusion de stable dans default LISEZMOI.txt precise le workflow" hg status hg glog --style compact hg glog cd ..
</code>