Skip to content
Snippets Groups Projects
Commit 7f18c7e1 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

amend: handle crash before transaction initialization with --patch

The `tr` object can be None.
parent c4b891fe
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,8 @@
bookmarkupdater(newnode)
tr.close()
finally:
tr.release()
if tr is not None:
tr.release()
lockmod.release(lock, wlock)
def _editandapply(ui, repo, pats, old, p1, fp, diffopts):
......
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