tests/test-debugcommands.t
changeset 20382 a82de9dc4f77
parent 20283 2b96073f3138
child 20543 01df3660eb11
equal deleted inserted replaced
20381:fff0a71f8177 20382:a82de9dc4f77
    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()
    36   >     debugstacktrace(skip=-5, f=sys.stdout)
    37   >     debugstacktrace(skip=-5, f=sys.stdout)
    37   > g()
    38   > g()
    38   > EOF
    39   > EOF
    39   $ python debugstacktrace.py
    40   $ python debugstacktrace.py
    40   hello world at:
    41   hello world at:
    41    debugstacktrace.py:7 in * (glob)
    42    debugstacktrace.py:8 in * (glob)
    42    debugstacktrace.py:5 in g
    43    debugstacktrace.py:5 in g
    43    debugstacktrace.py:3 in f
    44    debugstacktrace.py:3 in f
    44   stacktrace at:
    45   stacktrace at:
    45    debugstacktrace.py:7 *in * (glob)
    46    debugstacktrace.py:8 *in * (glob)
    46    debugstacktrace.py:6 *in g (glob)
    47    debugstacktrace.py:7 *in g (glob)
    47    */util.py:* in debugstacktrace (glob)
    48    */util.py:* in debugstacktrace (glob)