Re: "BASE != HEAD" notifications
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Mon, 23 Jun 2014 09:54:46 +0100
Daniel Shahaf wrote:
> One of my colleagues ran bisect but forgot to update back to HEAD after
The proposed library functionality is, roughly, caching of "base-version != head-version", for each WC path or rather each repos path represented in the WC? (A name such as "out-of-date" or "not-youngest" may be better than "dirty".)
That sounds potentially reasonable.
With just a simple query, it would be enough to solve "Alice"'s problem (forgot to update back to head after bisecting).
It would not by itself solve "Bob"'s problem (forgot to run 'svn up' in the morning). For that, you would need periodic monitoring for new changes in the repo, which is comparable to running "svn up" or "svn st -u".
> Clients (e.g., $EDITOR plugins) could then be configured to request that
Yes, I suppose this would be useful.
> (The "dirty" bit would be, more or less, a cache of "Last Changed Revision"
I have thought before of something very similar that may also be useful.
In the simple and fairly common case where a user commits a change in a
If we cache the "Next Changed Revision" -- that is, the next revision after Base in which the path was changed in the repo (or the fact that there are no changes between Base and a given younger revision) -- then we can determine when a superficially mixed-rev WC is in fact pointing at the same version of each object.
The check for "can't merge into a mixed-rev WC", for example, could be relaxed to "can't merge into a mixed-version WC, but you can merge into a superficially mixed-rev WC".
- Julian
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.