Show More
@@ -1,48 +1,47 b'' | |||||
1 | $ hg init debugrevlog |
|
1 | $ hg init debugrevlog | |
2 | $ cd debugrevlog |
|
2 | $ cd debugrevlog | |
3 | $ echo a > a |
|
3 | $ echo a > a | |
4 | $ hg ci -Am adda |
|
4 | $ hg ci -Am adda | |
5 | adding a |
|
5 | adding a | |
6 | $ hg debugrevlog -m |
|
6 | $ hg debugrevlog -m | |
7 | format : 1 |
|
7 | format : 1 | |
8 | flags : inline |
|
8 | flags : inline | |
9 |
|
9 | |||
10 | revisions : 1 |
|
10 | revisions : 1 | |
11 | merges : 0 ( 0.00%) |
|
11 | merges : 0 ( 0.00%) | |
12 | normal : 1 (100.00%) |
|
12 | normal : 1 (100.00%) | |
13 | revisions : 1 |
|
13 | revisions : 1 | |
14 | full : 1 (100.00%) |
|
14 | full : 1 (100.00%) | |
15 | deltas : 0 ( 0.00%) |
|
15 | deltas : 0 ( 0.00%) | |
16 | revision size : 44 |
|
16 | revision size : 44 | |
17 | full : 44 (100.00%) |
|
17 | full : 44 (100.00%) | |
18 | deltas : 0 ( 0.00%) |
|
18 | deltas : 0 ( 0.00%) | |
19 |
|
19 | |||
20 | avg chain length : 0 |
|
20 | avg chain length : 0 | |
21 | compression ratio : 0 |
|
21 | compression ratio : 0 | |
22 |
|
22 | |||
23 | uncompressed data size (min/max/avg) : 43 / 43 / 43 |
|
23 | uncompressed data size (min/max/avg) : 43 / 43 / 43 | |
24 | full revision size (min/max/avg) : 44 / 44 / 44 |
|
24 | full revision size (min/max/avg) : 44 / 44 / 44 | |
25 | delta size (min/max/avg) : 0 / 0 / 0 |
|
25 | delta size (min/max/avg) : 0 / 0 / 0 | |
26 |
|
26 | |||
27 |
|
27 | |||
28 | Test internal debugstacktrace command |
|
28 | Test internal debugstacktrace command | |
29 |
|
29 | |||
30 | $ cat > debugstacktrace.py << EOF |
|
30 | $ cat > debugstacktrace.py << EOF | |
31 | > from mercurial.util import debugstacktrace, dst, sys |
|
31 | > from mercurial.util import debugstacktrace, dst, sys | |
32 | > def f(): |
|
32 | > def f(): | |
33 | > dst('hello world') |
|
33 | > dst('hello world') | |
34 | > def g(): |
|
34 | > def g(): | |
35 | > f() |
|
35 | > f() | |
36 | > sys.stderr.flush() |
|
|||
37 | > debugstacktrace(skip=-5, f=sys.stdout) |
|
36 | > debugstacktrace(skip=-5, f=sys.stdout) | |
38 | > g() |
|
37 | > g() | |
39 | > EOF |
|
38 | > EOF | |
40 | $ python debugstacktrace.py |
|
39 | $ python debugstacktrace.py | |
41 | hello world at: |
|
40 | hello world at: | |
42 |
debugstacktrace.py: |
|
41 | debugstacktrace.py:7 in * (glob) | |
43 | debugstacktrace.py:5 in g |
|
42 | debugstacktrace.py:5 in g | |
44 | debugstacktrace.py:3 in f |
|
43 | debugstacktrace.py:3 in f | |
45 | stacktrace at: |
|
44 | stacktrace at: | |
46 |
debugstacktrace.py: |
|
45 | debugstacktrace.py:7 *in * (glob) | |
47 |
debugstacktrace.py: |
|
46 | debugstacktrace.py:6 *in g (glob) | |
48 | */util.py:* in debugstacktrace (glob) |
|
47 | */util.py:* in debugstacktrace (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now