Mercurial > public > mercurial-scm > hg-stable
diff mercurial/repair.py @ 31650:7095e783958d
repair: use ProgrammingError
author | Jun Wu <quark@fb.com> |
---|---|
date | Sun, 26 Mar 2017 16:53:28 -0700 |
parents | 0febf8e4e2ce |
children | 70d163b86316 |
line wrap: on
line diff
--- a/mercurial/repair.py Sun Mar 26 16:33:12 2017 +0900 +++ b/mercurial/repair.py Sun Mar 26 16:53:28 2017 -0700 @@ -163,8 +163,7 @@ curtr = repo.currenttransaction() if curtr is not None: del curtr # avoid carrying reference to transaction for nothing - msg = _('programming error: cannot strip from inside a transaction') - raise error.Abort(msg, hint=_('contact your extension maintainer')) + raise error.ProgrammingError('cannot strip from inside a transaction') try: with repo.transaction("strip") as tr: