##// END OF EJS Templates
devel-warn: add a prefix to all messages ("devel-warn: ")...
Pierre-Yves David -
r24755:cd89f4e6 default
parent child Browse files
Show More
@@ -174,6 +174,7 b' class casecollisionauditor(object):'
174
174
175 def develwarn(tui, msg):
175 def develwarn(tui, msg):
176 """issue a developer warning message"""
176 """issue a developer warning message"""
177 msg = 'devel-warn: ' + msg
177 if tui.tracebackflag:
178 if tui.tracebackflag:
178 util.debugstacktrace(msg, 2)
179 util.debugstacktrace(msg, 2)
179 else:
180 else:
@@ -50,18 +50,18 b''
50 $ hg init lock-checker
50 $ hg init lock-checker
51 $ cd lock-checker
51 $ cd lock-checker
52 $ hg buggylocking
52 $ hg buggylocking
53 transaction with no lock at: $TESTTMP/buggylocking.py:11 (buggylocking)
53 devel-warn: transaction with no lock at: $TESTTMP/buggylocking.py:11 (buggylocking)
54 "wlock" acquired after "lock" at: $TESTTMP/buggylocking.py:13 (buggylocking)
54 devel-warn: "wlock" acquired after "lock" at: $TESTTMP/buggylocking.py:13 (buggylocking)
55 $ cat << EOF >> $HGRCPATH
55 $ cat << EOF >> $HGRCPATH
56 > [devel]
56 > [devel]
57 > all=0
57 > all=0
58 > check-locks=1
58 > check-locks=1
59 > EOF
59 > EOF
60 $ hg buggylocking
60 $ hg buggylocking
61 transaction with no lock at: $TESTTMP/buggylocking.py:11 (buggylocking)
61 devel-warn: transaction with no lock at: $TESTTMP/buggylocking.py:11 (buggylocking)
62 "wlock" acquired after "lock" at: $TESTTMP/buggylocking.py:13 (buggylocking)
62 devel-warn: "wlock" acquired after "lock" at: $TESTTMP/buggylocking.py:13 (buggylocking)
63 $ hg buggylocking --traceback
63 $ hg buggylocking --traceback
64 transaction with no lock at:
64 devel-warn: transaction with no lock at:
65 */hg:* in * (glob)
65 */hg:* in * (glob)
66 */mercurial/dispatch.py:* in run (glob)
66 */mercurial/dispatch.py:* in run (glob)
67 */mercurial/dispatch.py:* in dispatch (glob)
67 */mercurial/dispatch.py:* in dispatch (glob)
@@ -73,7 +73,7 b''
73 */mercurial/dispatch.py:* in <lambda> (glob)
73 */mercurial/dispatch.py:* in <lambda> (glob)
74 */mercurial/util.py:* in check (glob)
74 */mercurial/util.py:* in check (glob)
75 $TESTTMP/buggylocking.py:* in buggylocking (glob)
75 $TESTTMP/buggylocking.py:* in buggylocking (glob)
76 "wlock" acquired after "lock" at:
76 devel-warn: "wlock" acquired after "lock" at:
77 */hg:* in * (glob)
77 */hg:* in * (glob)
78 */mercurial/dispatch.py:* in run (glob)
78 */mercurial/dispatch.py:* in run (glob)
79 */mercurial/dispatch.py:* in dispatch (glob)
79 */mercurial/dispatch.py:* in dispatch (glob)
General Comments 0
You need to be logged in to leave comments. Login now