##// END OF EJS Templates
journal: report parsing errors on recover/rollback (issue4172)
journal: report parsing errors on recover/rollback (issue4172)

File last commit:

r20382:a82de9dc default
r20524:28b8ff84 default
Show More
test-debugcommands.t
48 lines | 1.1 KiB | text/troff | Tads3Lexer
/ tests / test-debugcommands.t
Patrick Mezard
debugrevlog: handle numrevs == numfull case (issue3537)...
r17188 $ hg init debugrevlog
$ cd debugrevlog
$ echo a > a
$ hg ci -Am adda
adding a
$ hg debugrevlog -m
format : 1
flags : inline
revisions : 1
merges : 0 ( 0.00%)
normal : 1 (100.00%)
revisions : 1
full : 1 (100.00%)
deltas : 0 ( 0.00%)
revision size : 44
full : 44 (100.00%)
deltas : 0 ( 0.00%)
avg chain length : 0
compression ratio : 0
uncompressed data size (min/max/avg) : 43 / 43 / 43
full revision size (min/max/avg) : 44 / 44 / 44
delta size (min/max/avg) : 0 / 0 / 0
Mads Kiilerich
util: introduce util.debugstacktrace for showing a stack trace without crashing...
r20244
Test internal debugstacktrace command
$ cat > debugstacktrace.py << EOF
> from mercurial.util import debugstacktrace, dst, sys
> def f():
> dst('hello world')
> def g():
> f()
Simon Heimberg
tests: for consistent output flush between writing sterr and stdout...
r20382 > sys.stderr.flush()
Mads Kiilerich
util: introduce util.debugstacktrace for showing a stack trace without crashing...
r20244 > debugstacktrace(skip=-5, f=sys.stdout)
> g()
> EOF
$ python debugstacktrace.py
hello world at:
Simon Heimberg
tests: for consistent output flush between writing sterr and stdout...
r20382 debugstacktrace.py:8 in * (glob)
Mads Kiilerich
util: introduce util.debugstacktrace for showing a stack trace without crashing...
r20244 debugstacktrace.py:5 in g
debugstacktrace.py:3 in f
stacktrace at:
Simon Heimberg
tests: for consistent output flush between writing sterr and stdout...
r20382 debugstacktrace.py:8 *in * (glob)
debugstacktrace.py:7 *in g (glob)
Mads Kiilerich
util: introduce util.debugstacktrace for showing a stack trace without crashing...
r20244 */util.py:* in debugstacktrace (glob)