hgbook

annotate fr/examples/rename.divergent @ 1013:44946b10a4b3

merge with André Sintzoff
author Romain PELISSE <belaran@gmail.com>
date Tue Nov 24 11:44:49 2009 +0100 (2009-11-24)
parents 3b640272a966 547d3aa25ef0
children
rev   line source
bos@156 1 #!/bin/bash
bos@156 2
bos@156 3 hg init orig
bos@156 4 cd orig
bos@156 5 echo foo > foo
bos@156 6 hg ci -A -m 'First commit'
bos@156 7 cd ..
bos@156 8
bos@156 9 #$ name: clone
bos@156 10
bos@156 11 hg clone orig anne
bos@156 12 hg clone orig bob
bos@156 13
bos@156 14 #$ name: rename.anne
bos@156 15
bos@156 16 cd anne
bos@674 17 hg rename foo bar
bos@156 18 hg ci -m 'Rename foo to bar'
bos@156 19
bos@156 20 #$ name: rename.bob
bos@156 21
bos@156 22 cd ../bob
bos@156 23 hg mv foo quux
bos@156 24 hg ci -m 'Rename foo to quux'
bos@156 25
bos@156 26 #$ name: merge
bos@156 27 # See http://www.selenic.com/mercurial/bts/issue455
bos@156 28
bos@156 29 cd ../orig
bos@156 30 hg pull -u ../anne
bos@156 31 hg pull ../bob
bos@156 32 hg merge
bos@156 33 ls