##// END OF EJS Templates
tests: test-debugcommands.t also matches stack trace on python 2.4...
Simon Heimberg -
r20283:2b96073f default
parent child Browse files
Show More
@@ -1,47 +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 > debugstacktrace(skip=-5, f=sys.stdout)
36 > debugstacktrace(skip=-5, f=sys.stdout)
37 > g()
37 > g()
38 > EOF
38 > EOF
39 $ python debugstacktrace.py
39 $ python debugstacktrace.py
40 hello world at:
40 hello world at:
41 debugstacktrace.py:7 in <module>
41 debugstacktrace.py:7 in * (glob)
42 debugstacktrace.py:5 in g
42 debugstacktrace.py:5 in g
43 debugstacktrace.py:3 in f
43 debugstacktrace.py:3 in f
44 stacktrace at:
44 stacktrace at:
45 debugstacktrace.py:7 *in <module> (glob)
45 debugstacktrace.py:7 *in * (glob)
46 debugstacktrace.py:6 *in g (glob)
46 debugstacktrace.py:6 *in g (glob)
47 */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