[darcs-users] Re: Idea: Free floating patches?

David Roundy droundy at abridgegame.org
Mon Nov 15 11:51:11 UTC 2004


On Sun, Nov 14, 2004 at 01:47:25AM +0000, Mark Stosberg wrote:
> On 2004-11-13, David Roundy <droundy at abridgegame.org> wrote:
> >
> > This could be done, but I'm not so sure it would be useful.  Finding the
> > minimal context would be a very slow process on large repositories, since
> > it's an O(n^2) process.  In addition, I'm not sure how often one would
> > really want a minimal context, and this also increases the probability that
> > you'd not include a patch that is needed by others.
> 
> And can't 'darcs diff' be used for this as well? That gives the user the
> flexibility to select exactly what's being patched against.

But darcs diff doesn't create a darcs patch...

> > I think a somewhat less lofty goal of adding a --to-tag option to send,
> > which would allow you to create a bundle of patches that can be applied to
> > a particular tagged version of the repositories.  Such a patch bundle would
> > often be smaller than the "minimal context" bundle, since the context would
> > be a single tag, rather than a whole list of patches, and would be a bit
> > easier to explain ("here's a patch to darcs 1.0.0").
> 
> I like this idea. Would '--to-tag' be the best name, though? It seems a
> little different than how '--to-tag' is used elsewhere. '--apply-to-tag'
> Seems a little clearer. 

Yeah, --to-tag probably wouldn't be a good name.
-- 
David Roundy
http://www.darcs.net




More information about the darcs-users mailing list