Mercurial : strip d’une branche nommée

Attention : le strip d’une branche est une action irréversible, qui altèrera définitivement votre historique.

yamanika@tyrion:~/workspace/dummyproject$ hg branches
default                           863:5cabe36e56fe
xmas-2012                    324:be54a12c363f
halloween-2012             031:33ef0d2b5bb4
yamanika@tyrion:~/workspace/dummyproject$ hg strip “branch(‘xmas-2012’)”
saved backup bundle to /home/yamanika/workspace/dummyproject/.hg/strip-backup/ed26300725ae-backup.hg
yamanika@tyrion:~/workspace/dummyproject$ hg branches
default                          863:5cabe36e56fe
halloween-2012             031:33ef0d2b5bb4

 

Penser à utiliser des quotes si le nom de votre branche contient des caractères spéciaux :

yamanika@tyrion:~/workspace/dummyproject$ hg strip “branch(xmas-2012)”
abandon : unknown revision ‘xmas’ !

 

 

Leave a comment