Skip to content
Snippets Groups Projects
Commit e413609659cf authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

strip: remove unncessary "del" and inline variable

parent eb84b4ad41e5
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment