hgbook
diff fr/examples/rollback @ 921:547d3aa25ef0
Initial copy from the english version, added package for french input.
author | Romain PELISSE <romain.pelisse@atosorigin.com> |
---|---|
date | Thu Feb 05 12:37:03 2009 +0100 (2009-02-05) |
parents | en/examples/rollback@9094c9fda8ec |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/fr/examples/rollback Thu Feb 05 12:37:03 2009 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +#!/bin/bash 1.5 + 1.6 +hg init a 1.7 +cd a 1.8 +echo a > a 1.9 +hg ci -A -m 'First commit' 1.10 + 1.11 +echo a >> a 1.12 + 1.13 +#$ name: tip 1.14 + 1.15 +#$ name: commit 1.16 + 1.17 +hg status 1.18 +echo b > b 1.19 +hg commit -m 'Add file b' 1.20 + 1.21 +#$ name: status 1.22 + 1.23 +hg status 1.24 +hg tip 1.25 + 1.26 +#$ name: rollback 1.27 + 1.28 +hg rollback 1.29 +hg tip 1.30 +hg status 1.31 + 1.32 +#$ name: add 1.33 + 1.34 +hg add b 1.35 +hg commit -m 'Add file b, this time for real' 1.36 + 1.37 +#$ name: twice 1.38 + 1.39 +hg rollback 1.40 +hg rollback