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

softstrip: fix a reference to an undefined variable

`backupfile` wasn't defined if no backup was requested. Let's set it
to `None` by default, which matches what regular `repair.strip()`
does.

Differential Revision: https://phab.mercurial-scm.org/D9985
parent beaa233e
No related branches found
No related tags found
1 merge request!72ci: hook network-io tests into the pipeline
......@@ -308,6 +308,7 @@
if not tostrip:
return None
backupfile = None
if backup:
node = tostrip[0]
backupfile = _createstripbackup(repo, tostrip, node, topic)
......
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