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