Mercurial > hg > mercurial-source
changeset 33706:e413609659cf
strip: remove unncessary "del" and inline variable
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 19 Jun 2017 13:13:28 -0700 |
parents | eb84b4ad41e5 |
children | f044295cdb7a |
files | mercurial/repair.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -168,9 +168,7 @@ mfst = repo.manifestlog._revlog - curtr = repo.currenttransaction() - if curtr is not None: - del curtr # avoid carrying reference to transaction for nothing + if repo.currenttransaction() is not None: raise error.ProgrammingError('cannot strip from inside a transaction') try: