Mercurial > hgbook
view en/examples/rollback @ 146:65f6f9d18fa1
Oops! I forgot that I need the undoctored output files in the book!
Now they're named "*.lxo", instead of "*.out". Ugh.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 06 Mar 2007 21:55:48 -0800 |
parents | 9094c9fda8ec |
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