--- a/mercurial/localrepo.py Sun Apr 12 14:24:28 2015 -0400
+++ b/mercurial/localrepo.py Sun Apr 12 14:26:11 2015 -0400
@@ -926,7 +926,7 @@
or self.ui.configbool('devel', 'check-locks')):
l = self._lockref and self._lockref()
if l is None or not l.held:
- scmutil.develwarn(self.ui, 'transaction with no lock\n')
+ scmutil.develwarn(self.ui, 'transaction with no lock')
tr = self.currenttransaction()
if tr is not None:
return tr.nest()
@@ -1216,7 +1216,7 @@
or self.ui.configbool('devel', 'check-locks')):
l = self._lockref and self._lockref()
if l is not None and l.held:
- scmutil.develwarn(self.ui, '"wlock" acquired after "lock"\n')
+ scmutil.develwarn(self.ui, '"wlock" acquired after "lock"')
def unlock():
if self.dirstate.pendingparentchange():