D2211: util: format line number of stack trace using %d
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Feb 12 22:48:35 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2874896a6e3b: util: format line number of stack trace using %d (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2211?vs=5603&id=5610
REVISION DETAIL
https://phab.mercurial-scm.org/D2211
AFFECTED FILES
mercurial/util.py
CHANGE DETAILS
diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -3159,7 +3159,7 @@
results.append(hook(*args))
return results
-def getstackframes(skip=0, line=' %-*s in %s\n', fileline='%s:%s', depth=0):
+def getstackframes(skip=0, line=' %-*s in %s\n', fileline='%s:%d', depth=0):
'''Yields lines for a nicely formatted stacktrace.
Skips the 'skip' last entries, then return the last 'depth' entries.
Each file+linenumber is formatted according to fileline.
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list