Bundlerepo and at-rest bundle2 handling
Eric Sumner
ericsumner at fb.com
Fri Dec 19 23:21:33 UTC 2014
Iâve been thinking about how to make bundlerepo support bundle2, and its current architecture doesnât seem like a good match. It relies heavily on the fact that the bundle1 format is essentially the same as the on-disk revlog format by seeking to relevant points and treating them like theyâre appended to the ones in .hg. As currently designed, bundle2 specifies a sequence of operations to perform in order to update the repository to the desired state.
In order to support handling this at rest, Iâd like to propose adding a temprepo class that is backed by a copy-on-write vfs; this should allow the âB flag to run a standard unbundle operation in a temprepo which is then used for the rest of the command. It also would enable the possibility of a âtest global option, which would perform the listed command inside a temprepo instead of directly to the localrepo.
Does this seem like a reasonable approach to take?
â Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20141219/93f51c21/attachment.html>
More information about the Mercurial-devel
mailing list