Re: Shelving v3 started
From: Julian Foad <julianfoad_at_apache.org>
Date: Mon, 18 Feb 2019 07:54:36 -0500
> > (2) Better capture of base state.
[Summarizing from IRC.]
Today I'm trying to figure out how to get Shelving v3 from last week's initial demo state (email "Shelving v3 started", branch "shelving-v3") to something that could be considered experimentally usable in a v1.12 release. My overall approach is to aim for high level APIs to do the required functional blocks; I'm not going to hack the wc-db.
The current state is to make a shelf we:
The bit that needs work next is making a copy of the base state of the user's WC.
Here's the plan for that bit:
(1) Create the WC base checkout by using existing "checkout" code, initially driven from the repository, using URLs and revnums read from the user's WC (as in "svn info --x-viewspec").
(2) Create the WC base reading API (limited to a given path-spec) and think of a way to test/exercise it in isolation.
(3) Wire up (1) and (2) together.
For (1): The existing high level API to create a WC with a given base state (and no local modifications) is the client side of "checkout". Of course we only need to copy the base of locally modified nodes in the requested portions of the user's WC, not the whole WC. So we need an API that creates (a bit like checkout) a new WC that includes just those paths. I wonder if we could do that by using the "checkout" client-side machinery, unmodified, to create the WC, being driven from a "pretend Repository Access API" driver that feeds "real" data for the given paths and sets all other paths to depth-exclude.
For (2) the base-reading API: The existing high level API to read the base state of a WC is ... seems to be missing. "export" is but a small subset of it, lacking properties and repository URLs and revisions metadata. I can investigate starting from existing "diff -r0:BASE" code and see if that's useful. However, it writes directly to the diff-tree-processor API and I'm not sure if that's convertible to editor API.
Moving the shelf-storage-WCs location back inside .svn/experimental/... will be trivial after step (1a).
-- - JulianReceived on 2019-02-18 13:54:45 CET
This is an archived mail posted to the Subversion Dev mailing list.