Mercurial > hg
changeset 22446:054ec0212718
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.
author | Mike Edgar <adgar@google.com> |
---|---|
date | Mon, 15 Sep 2014 16:07:54 -0400 |
parents | 5716d10e89e7 |
children | 2642ce9be6ef |
files | contrib/synthrepo.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/synthrepo.py Mon Sep 15 09:36:12 2014 -0500 +++ b/contrib/synthrepo.py Mon Sep 15 16:07:54 2014 -0400 @@ -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: