Skip to content
Snippets Groups Projects
Commit 054ec021 authored by Mike Edgar's avatar Mike Edgar
Browse files

contrib/synthrepo: return None to delete files on commit, don't raise IOError

The internal commit API was changed in 650b5b6e75ed to expect None from the
filectx function when a file is to be deleted, not an IOError. This change
keeps synthrepo up-to-date.
parent 5716d10e
No related branches found
No related tags found
No related merge requests found
......@@ -356,10 +356,7 @@
for __ in xrange(pick(linesinfilesadded))) + '\n'
changes[path] = context.memfilectx(repo, path, data)
def filectxfn(repo, memctx, path):
data = changes[path]
if data is None:
raise IOError
return data
return changes[path]
if not changes:
continue
if revs:
......
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