hgbook

annotate es/examples/rollback @ 673:dbe5f4bb6507

Ignore more
author Bryan O'Sullivan <bos@serpentine.com>
date Thu Apr 09 22:54:10 2009 -0700 (2009-04-09)
parents
children
rev   line source
igor@333 1 #!/bin/bash
igor@333 2
igor@333 3 hg init a
igor@333 4 cd a
igor@333 5 echo a > a
igor@333 6 hg ci -A -m 'First commit'
igor@333 7
igor@333 8 echo a >> a
igor@333 9
igor@333 10 #$ name: tip
igor@333 11
igor@333 12 #$ name: commit
igor@333 13
igor@333 14 hg status
igor@333 15 echo b > b
igor@333 16 hg commit -m 'Add file b'
igor@333 17
igor@333 18 #$ name: status
igor@333 19
igor@333 20 hg status
igor@333 21 hg tip
igor@333 22
igor@333 23 #$ name: rollback
igor@333 24
igor@333 25 hg rollback
igor@333 26 hg tip
igor@333 27 hg status
igor@333 28
igor@333 29 #$ name: add
igor@333 30
igor@333 31 hg add b
igor@333 32 hg commit -m 'Add file b, this time for real'
igor@333 33
igor@333 34 #$ name: twice
igor@333 35
igor@333 36 hg rollback
igor@333 37 hg rollback