##// 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 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 36 > debugstacktrace(skip=-5, f=sys.stdout)
37 37 > g()
38 38 > EOF
39 39 $ python debugstacktrace.py
40 40 hello world at:
41 debugstacktrace.py:7 in <module>
41 debugstacktrace.py:7 in * (glob)
42 42 debugstacktrace.py:5 in g
43 43 debugstacktrace.py:3 in f
44 44 stacktrace at:
45 debugstacktrace.py:7 *in <module> (glob)
45 debugstacktrace.py:7 *in * (glob)
46 46 debugstacktrace.py:6 *in g (glob)
47 47 */util.py:* in debugstacktrace (glob)
General Comments 0
You need to be logged in to leave comments. Login now