Mercurial > evolve
comparison tests/test-obsolete.t @ 32:c27491be4431
obsolet: basic support (hide changeset)
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Fri, 29 Jul 2011 18:54:05 +0200 |
parents | |
children | b12655157ba0 |
comparison
equal
deleted
inserted
replaced
31:1fef89f56588 | 32:c27491be4431 |
---|---|
1 $ cat >> $HGRCPATH <<EOF | |
2 > [web] | |
3 > push_ssl = false | |
4 > allow_push = * | |
5 > [extensions] | |
6 > EOF | |
7 $ echo "states=$(echo $(dirname $TESTDIR))/obsolete.py" >> $HGRCPATH | |
8 $ mkcommit() { | |
9 > echo "$1" > "$1" | |
10 > hg add "$1" | |
11 > hg ci -m "add $1" | |
12 > } | |
13 | |
14 $ hg init repo | |
15 $ cd repo | |
16 $ mkcommit a # 0 | |
17 $ mkcommit b # 1 | |
18 $ mkcommit c # 2 | |
19 $ hg up 1 | |
20 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
21 $ mkcommit obsol_c # 3 | |
22 created new head | |
23 $ hg debugobsolete 3 2 | |
24 $ hg log | |
25 changeset: 3:0d3f46688ccc | |
26 tag: tip | |
27 parent: 1:7c3bad9141dc | |
28 user: test | |
29 date: Thu Jan 01 00:00:00 1970 +0000 | |
30 summary: add obsol_c | |
31 | |
32 changeset: 1:7c3bad9141dc | |
33 user: test | |
34 date: Thu Jan 01 00:00:00 1970 +0000 | |
35 summary: add b | |
36 | |
37 changeset: 0:1f0dee641bb7 | |
38 user: test | |
39 date: Thu Jan 01 00:00:00 1970 +0000 | |
40 summary: add a | |
41 | |
42 $ hg log --hidden | |
43 changeset: 3:0d3f46688ccc | |
44 tag: tip | |
45 parent: 1:7c3bad9141dc | |
46 user: test | |
47 date: Thu Jan 01 00:00:00 1970 +0000 | |
48 summary: add obsol_c | |
49 | |
50 changeset: 2:4538525df7e2 | |
51 user: test | |
52 date: Thu Jan 01 00:00:00 1970 +0000 | |
53 summary: add c | |
54 | |
55 changeset: 1:7c3bad9141dc | |
56 user: test | |
57 date: Thu Jan 01 00:00:00 1970 +0000 | |
58 summary: add b | |
59 | |
60 changeset: 0:1f0dee641bb7 | |
61 user: test | |
62 date: Thu Jan 01 00:00:00 1970 +0000 | |
63 summary: add a | |
64 |