Add RepoFilter.finish() function for split RepoFilter cases

rebase-i-autosquash-rebase-merges-fails
Elijah Newren 6 years ago committed by Elijah Newren
parent 81d91522f9
commit 6c4d15d4fd

@ -2638,6 +2638,14 @@ class RepoFilter(object):
print("[DEBUG] Running: {}".format(' '.join(fip_cmd)))
print(" (using the following file as input: {})".format(fe_filt))
def finish(self):
''' Alternative to finish() when there is no input of our own to parse,
meaning that run only really needs to close the handle to fast-import
and let it finish, thus making a call to "run" feel like a misnomer. '''
assert not self._input
assert self._managed_output
self.run()
def run(self):
if not self._input and not self._output:
self._setup_input(use_done_feature = True)

@ -67,7 +67,7 @@ class InterleaveRepositories:
commit_callback = lambda c: self.weave_commit(c))
i2.set_output(out)
i2.run()
out.run()
out.finish()
splicer = InterleaveRepositories(sys.argv[1], sys.argv[2], sys.argv[3])
splicer.run()

Loading…
Cancel
Save