[darcs-users] Tracking third-party software

David Roundy droundy at abridgegame.org
Wed Feb 18 11:07:05 UTC 2004


On Tue, Feb 17, 2004 at 09:07:42AM -0500, Sean E. Russell wrote:
> On Tuesday 17 February 2004 06:47, David Roundy wrote:
> > Trying to use the darcs patch format outside of darcs itself doesn't
> > really seem useful to me.  If you don't keep track of the precise
> > version to which
> 
> Oh, heck... I can change your mind about that.
> 
> I have a project that I maintain primarily in darcs, but I also have to
> maintain it in somebody else's CVS tree (it is the XML parser for the
> Ruby language).  So, I do all of my development work in darcs, and
> occasionally cross-port it to the Ruby tree.
> 
> Right now, I just run diff across both trees when I want to merge them,
> but being able to dump a diff directly from darcs -- including comments
> -- would be pretty handy.  This is because there are a couple of files
> that I change in the CVS, and running diff across both trees right now
> destroys those changes; a darcs diff dump would preserve these changes
> when I patched the CVS tree.

Well, you can use darcs diff to get a unidiff out of darcs, which seems
like it would alleviate some of your problems, and then you could just use
patch to apply it to the CVS tree.  But even more appealing would be simply
to make the CVS tree itself a darcs repo.  You could do this by copying
_darcs from a repo into the CVS tree.  Then you'd have to add/remove/rename
files by hand, but you could just darcs pull to move changes into the CVS
tree, since CVS and darcs can happily share a working directory.

But (also from Mirian's comments) I'll concede that there does seem like
there may be a use for a darcs-patch utility that would simply apply a
darcs patch.  But it also seems like such a utility would have to do
inexact patching, since outside of darcs it would be hard to guarantee that
a tree hasn't been changed.
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-users mailing list