Mercurial > public > mercurial-scm > hg
diff tests/test-debugcommands.t @ 31315:78ac7061f840
util: add debugstacktrace depth limit
Useful when you don't care about the start of the stack, but only want to see
the last entries.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 14 Jan 2015 01:15:26 +0100 |
parents | 7c877cbf30d6 |
children | ccef71de7d41 |
line wrap: on
line diff
--- a/tests/test-debugcommands.t Fri Jan 16 04:26:40 2015 +0100 +++ b/tests/test-debugcommands.t Wed Jan 14 01:15:26 2015 +0100 @@ -122,7 +122,7 @@ > dst('hello from g\\n', skip=1) > h() > def h(): - > dst('hi ...\\nfrom h hidden in g', 1) + > dst('hi ...\\nfrom h hidden in g', 1, depth=2) > f() > EOF $ python debugstacktrace.py @@ -134,6 +134,5 @@ debugstacktrace.py:4 in f hi ... from h hidden in g at: - debugstacktrace.py:10 in * (glob) - debugstacktrace.py:4 in f - debugstacktrace.py:7 in g + debugstacktrace.py:4 in f + debugstacktrace.py:7 in g