monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] movable monotone tags


From: Richard Levitte - VMS Whacker
Subject: Re: [Monotone-devel] movable monotone tags
Date: Thu, 26 May 2005 09:00:25 +0200 (CEST)

In message <address@hidden> on Tue, 24 May 2005 19:39:15 +0300, Stanislav 
Karchebny <address@hidden> said:

berkus> In recent talk with msh on irc i proposed some solution to
berkus> movable tags:
berkus> 
berkus> 1) Use case: we have a development model where tree is tagged
berkus>    prior to building so that buildscript can fetch the
berkus>    appropriate sources given only software version number
berkus>    (e.g. build 1.2.3 makes buildscript fetch tag ver-123 and
berkus>    so on). Sometimes builds fail and we fix the source and
berkus>    re-tag a new version with the same tag (since its going to
berkus>    be the same version anyway).
berkus> 
berkus> 2) Proposal: version tags similar to how we version the files
berkus>    themselves.  So a tag on revision X can be moved to
berkus>    revision Y specifying that its ancestor revision was X.
berkus>    Then different tag moves in different trees can be tracked
berkus>    and resolved using pretty much the same merge conflicts
berkus>    resolution.

Movable certs aren't really possible with the distributed nature of
monotone.  Basically, the old position of the tag might always came
back and bite you.

However, if you read the manual (and have a recent enough monotone.
I'm not entirely dure if it's present on 0.19 or not), you will find
that it's possible to select for arbitrary cert name and value
combinations.  So using your own cert (say, "X-build", following the
tradition of prepending a "X-" to anything unofficial), you can mark
any revision you like with some version number, and then have your
buildscript look for the latest occurence of that value.  A
combination of 'monotone automate select c:X-build=m.n.e' and
'monotone automate erase_ancestors' should do the trick.  I've planned
on doing something like that, just haven't quite gotten to it yet.

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         address@hidden
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis




reply via email to

[Prev in Thread] Current Thread [Next in Thread]