##// END OF EJS Templates
transaction: use ProgrammingError
Jun Wu -
r31648:8defc7d9 default
parent child Browse files
Show More
@@ -226,7 +226,7 b' class transaction(object):'
226 """
226 """
227 if self._queue:
227 if self._queue:
228 msg = 'cannot use transaction.addbackup inside "group"'
228 msg = 'cannot use transaction.addbackup inside "group"'
229 raise RuntimeError(msg)
229 raise error.ProgrammingError(msg)
230
230
231 if file in self.map or file in self._backupmap:
231 if file in self.map or file in self._backupmap:
232 return
232 return
General Comments 0
You need to be logged in to leave comments. Login now