comparison tests/test-touch.t @ 700:ebcfd72e7609 stable

touch: add basic testing
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 08 Feb 2013 22:09:42 +0000
parents
children f752089479ce
comparison
equal deleted inserted replaced
699:dba3ed9f2c4f 700:ebcfd72e7609
1
2 $ cat >> $HGRCPATH <<EOF
3 > [ui]
4 > logtemplate={rev}:{node|short} {desc}\n
5 > [defaults]
6 > amend=-d "0 0"
7 > [extensions]
8 > hgext.rebase=
9 > EOF
10 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> $HGRCPATH
11
12 $ hg init repo
13 $ cd repo
14 $ echo A > a
15 $ hg add a
16 $ hg commit -m a
17
18 Basic usage
19
20 $ hg log -G
21 @ 0:e93df3427f45 a
22
23 $ hg touch .
24 $ hg log -G
25 @ 1:[0-9a-f]{12} a (re)
26
27
28
29 Revive usage
30
31 $ echo A > b
32 $ hg add b
33 $ hg commit -m ab --amend
34 $ hg up --hidden 1
35 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
36 Working directory parent is obsolete
37 $ hg log -G
38 o 3:[0-9a-f]{12} ab (re)
39
40 @ 1:[0-9a-f]{12} a (re)
41
42 $ hg touch .
43 2 new divergent changesets
44 $ hg log -G
45 @ 4:[0-9a-f]{12} a (re)
46
47 o 3:[0-9a-f]{12} ab (re)
48
49 $ hg prune 3
50 1 changesets pruned