Submitter | Yuya Nishihara |
---|---|
Date | Aug. 14, 2017, 7:53 a.m. |
Message ID | <1643bad8116707fb6e16.1502697229@mimosa> |
Download | mbox | patch |
Permalink | /patch/22968/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -318,9 +318,8 @@ class bundleoperation(object): def addhookargs(self, hookargs): if self.hookargs is None: - raise error.Abort( - _('attempted to add hooks to operation after transaction ' - 'started')) + raise error.ProgrammingError('attempted to add hookargs to ' + 'operation after transaction started') self.hookargs.update(hookargs) class TransactionUnavailable(RuntimeError):