changeset 31648:8defc7d9adae

transaction: use ProgrammingError
author Jun Wu <quark@fb.com>
date Sun, 26 Mar 2017 16:59:30 -0700
parents 4dbef666c6c9
children 4bc3e55cf386
files mercurial/transaction.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/transaction.py	Sun Mar 26 16:57:25 2017 -0700
+++ b/mercurial/transaction.py	Sun Mar 26 16:59:30 2017 -0700
@@ -226,7 +226,7 @@
         """
         if self._queue:
             msg = 'cannot use transaction.addbackup inside "group"'
-            raise RuntimeError(msg)
+            raise error.ProgrammingError(msg)
 
         if file in self.map or file in self._backupmap:
             return