Mercurial > hgbook
view ja/examples/rollback @ 348:32d33b238b7e
made changes to the source files to be compiled at any rate.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 19 Aug 2008 16:03:33 +0900 |
parents | b0db5adf11c1 |
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