[darcs-users] creating tags after the fact (was: finding the patch where...)

David Roundy droundy at darcs.net
Sat Dec 1 17:01:08 UTC 2007


On Fri, Nov 30, 2007 at 12:11:37PM -0500, Nathan Gray wrote:
> On Thu, Nov 29, 2007 at 06:13:23PM -0800, Ben Coburn wrote:
> > 
> > On Nov 29, 2007, at 14:14, Nathan Gray wrote:
> > > Is it possible to create a tag by listing the patches that should be
> > > included, while leaving out other patches in the repository?  Though I
> > > still have to figure out which patches I need and which I do not.
> > 
> > Yes, I wrote some code to do this for special repository usage  
> > semantics a few months ago. Here's some ideas on how to do this....
> > 
> > 1) darcs only
> > Create a new blank repository. Pull in only the patches you want to  
> > tag. Create a tag. Send and apply the tag back to the full  
> > repository. Remove the temporary repository used to create the tag.  
> > Note: This will probably be way too slow for such a large number of  
> > patches.
> 
> I've tried doing this in the past.  As you note, it is slow.

Often, a faster option would be to darcs get a copy of the repository and
then obliterate the patches that you don't want in the tag.  Then tag, and
pull the tag into the other repository.  (Pulling is almost always more
efficient than pushing.)
-- 
David Roundy
Department of Physics
Oregon State University


More information about the darcs-users mailing list