224
|
1 $ cat >> $HGRCPATH <<EOF
|
|
2 > [web]
|
|
3 > push_ssl = false
|
|
4 > allow_push = *
|
|
5 > [phases]
|
|
6 > publish=False
|
|
7 > [alias]
|
|
8 > odiff=diff --rev 'limit(obsparents(.),1)' --rev .
|
|
9 > [extensions]
|
|
10 > hgext.graphlog=
|
|
11 > EOF
|
|
12 $ mkcommit() {
|
|
13 > echo "$1" > "$1"
|
|
14 > hg add "$1"
|
|
15 > hg ci -m "add $1"
|
|
16 > }
|
|
17
|
|
18 create commit
|
|
19
|
|
20 $ hg init repo
|
|
21 $ cd repo
|
|
22 $ mkcommit a
|
|
23 $ mkcommit b
|
|
24 $ hg up -q 0
|
|
25 $ mkcommit c
|
|
26 created new head
|
|
27
|
|
28 forge old style relation files
|
|
29
|
|
30 $ hg log -r 2 --template='{node} ' > .hg/obsolete-relations
|
|
31 $ hg log -r 1 --template='{node}' >> .hg/obsolete-relations
|
|
32
|
|
33 enable the extensions
|
|
34
|
|
35 $ echo "obsolete=$(echo $(dirname $TESTDIR))/hgext/obsolete.py" >> $HGRCPATH
|
|
36
|
|
37 $ hg glog
|
|
38 abort: old format of obsolete marker detected!
|
|
39 run `hg debugconvertobsolete` once.
|
|
40 [255]
|
|
41 $ hg debugconvertobsolete --traceback
|
|
42 1 obsolete marker converted
|
|
43 $ hg glog
|
|
44 @ changeset: 2:d67cd0334eee
|
|
45 | tag: tip
|
|
46 | parent: 0:1f0dee641bb7
|
|
47 | user: test
|
|
48 | date: Thu Jan 01 00:00:00 1970 +0000
|
|
49 | summary: add c
|
|
50 |
|
|
51 o changeset: 0:1f0dee641bb7
|
|
52 user: test
|
|
53 date: Thu Jan 01 00:00:00 1970 +0000
|
|
54 summary: add a
|
|
55
|
|
56 $ hg debugconvertobsolete
|
|
57 nothing to do
|
|
58 0 obsolete marker converted
|