Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 24748:d6caadff4779
develwarn: handle the end of line inside the function itself
The traceback version should not have a end of line at all. The non-traceback
version will requires the same things soon.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Sun, 12 Apr 2015 14:26:11 -0400 |
parents | bef8b17443a3 |
children | aaf835407bf2 |
line wrap: on
line diff
--- 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():