Bug 3441 - hg bundle sometimes creates bundles that corrupt some repos when unbundled
Summary: hg bundle sometimes creates bundles that corrupt some repos when unbundled
Status: RESOLVED INVALID
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: wish bug
Assignee: Sune Foldager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-12 13:22 UTC by Sune Foldager
Modified: 2013-11-07 17:32 UTC (History)
2 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sune Foldager 2012-05-12 13:22 UTC
The code for created bundles cuts a few corners here and there to avoid including unnecessary revlog entries, in particular for the filelogs. When an identical change to a file is made on separate branches, this can sometimes lead to a bundle that, while it can unbundle fine on the repo it was created against, cannot unbundle correctly on an otherwise perfectly compatible repo (i.e. one that has all the bundle's parent revisions.

If server.validate is not used, this leads to a corrupt repo (although easily repairable).
Comment 1 Matt Mackall 2013-07-26 17:55 UTC
Still a thing?
Comment 2 Matt Mackall 2013-11-07 17:32 UTC
Guess not.