Mercurial > hgbook
view es/examples/rollback @ 794:41bb6ec2ca27
Propagate c36a6f534b99
Fix named branching book section.
'hg update -C branchname' is no longer required to jump from one named
branch to another one; this can also be done simply using 'hg update
branchname'.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 18 Jun 2009 16:23:58 +0900 |
parents | 04c08ad7e92e |
children |
line wrap: on
line source
#!/bin/bash hg init a cd a echo a > a hg ci -A -m 'First commit' echo a >> a #$ name: tip #$ name: commit hg status echo b > b hg commit -m 'Add file b' #$ name: status hg status hg tip #$ name: rollback hg rollback hg tip hg status #$ name: add hg add b hg commit -m 'Add file b, this time for real' #$ name: twice hg rollback hg rollback