Skip to content

Commit

Permalink
Don't produce v2 chunks with a null delta except the first one
Browse files Browse the repository at this point in the history
While Mercurial handles those chunks correctly, it wouldn't produce them
(and git-cinnabar didn't handle them well before the previous commit).
  • Loading branch information
glandium committed Jul 27, 2022
1 parent e7d722c commit 9d012c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinnabar/hg/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def prepare_chunk(store, chunk, previous, chunk_type):
key=len)
if len(deltas):
return deltas[0]
return chunk.to_chunk(chunk_type)
return chunk.to_chunk(chunk_type, previous)
else:
assert False

Expand Down

0 comments on commit 9d012c8

Please sign in to comment.