Mercurial > hgbook
view es/examples/daily.revert @ 525:e5739e8d708f
finished file "concepts.tex". Upgraded project status file
author | Javier Rojas <jerojasro@devnull.li> |
---|---|
date | Sun, 23 Nov 2008 13:22:45 -0500 |
parents | 04c08ad7e92e |
children |
line wrap: on
line source
#!/bin/bash hg init a cd a echo 'original content' > file hg ci -Ama #$ name: modify cat file echo unwanted change >> file hg diff file #$ name: unmodify hg status hg revert file cat file #$ name: status hg status cat file.orig #$ name: rm file.orig #$ name: add echo oops > oops hg add oops hg status oops hg revert oops hg status #$ name: rm oops #$ name: remove hg remove file hg status hg revert file hg status ls file #$ name: missing rm file hg status hg revert file ls file #$ name: copy hg copy file new-file hg revert new-file hg status #$ name: rm new-file #$ name: rename hg rename file new-file hg revert new-file hg status #$ name: rename-orig hg revert file hg status