mercurial/localrepo.py
changeset 30579 f8c9a7d2bbbf
parent 30576 91db2aa0edfe
child 30639 ad15646dc61c
--- a/mercurial/localrepo.py	Tue Dec 06 14:57:47 2016 +0000
+++ b/mercurial/localrepo.py	Tue Dec 06 17:06:39 2016 +0000
@@ -1016,8 +1016,7 @@
         if (self.ui.configbool('devel', 'all-warnings')
                 or self.ui.configbool('devel', 'check-locks')):
             if self._currentlock(self._lockref) is None:
-                raise RuntimeError('programming error: transaction requires '
-                                   'locking')
+                raise error.ProgrammingError('transaction requires locking')
         tr = self.currenttransaction()
         if tr is not None:
             return tr.nest()