##// END OF EJS Templates
develwarn: handle the end of line inside the function itself...
Pierre-Yves David -
r24748:d6caadff default
parent child Browse files
Show More
@@ -926,7 +926,7 b' class localrepository(object):'
926 926 or self.ui.configbool('devel', 'check-locks')):
927 927 l = self._lockref and self._lockref()
928 928 if l is None or not l.held:
929 scmutil.develwarn(self.ui, 'transaction with no lock\n')
929 scmutil.develwarn(self.ui, 'transaction with no lock')
930 930 tr = self.currenttransaction()
931 931 if tr is not None:
932 932 return tr.nest()
@@ -1216,7 +1216,7 b' class localrepository(object):'
1216 1216 or self.ui.configbool('devel', 'check-locks')):
1217 1217 l = self._lockref and self._lockref()
1218 1218 if l is not None and l.held:
1219 scmutil.develwarn(self.ui, '"wlock" acquired after "lock"\n')
1219 scmutil.develwarn(self.ui, '"wlock" acquired after "lock"')
1220 1220
1221 1221 def unlock():
1222 1222 if self.dirstate.pendingparentchange():
@@ -177,7 +177,7 b' def develwarn(tui, msg):'
177 177 if tui.tracebackflag:
178 178 util.debugstacktrace(msg, 2)
179 179 else:
180 tui.write_err(msg)
180 tui.write_err(msg + '\n')
181 181
182 182 def filteredhash(repo, maxrev):
183 183 """build hash of filtered revisions in the current repoview.
@@ -54,8 +54,7 b''
54 54 transaction with no lock
55 55 "wlock" acquired after "lock"
56 56 $ hg buggylocking --traceback
57 transaction with no lock
58 at:
57 transaction with no lock at:
59 58 */hg:* in * (glob)
60 59 */mercurial/dispatch.py:* in run (glob)
61 60 */mercurial/dispatch.py:* in dispatch (glob)
@@ -67,8 +66,7 b''
67 66 */mercurial/dispatch.py:* in <lambda> (glob)
68 67 */mercurial/util.py:* in check (glob)
69 68 $TESTTMP/buggylocking.py:* in buggylocking (glob)
70 "wlock" acquired after "lock"
71 at:
69 "wlock" acquired after "lock" at:
72 70 */hg:* in * (glob)
73 71 */mercurial/dispatch.py:* in run (glob)
74 72 */mercurial/dispatch.py:* in dispatch (glob)
General Comments 0
You need to be logged in to leave comments. Login now