monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] [PATCH] head selector


From: Richard Levitte - VMS Whacker
Subject: Re: [Monotone-devel] [PATCH] head selector
Date: Sun, 26 Jun 2005 13:08:29 +0200 (CEST)

In message <address@hidden> on Sun, 26 Jun 2005 03:57:55 -0500, Brian Downing 
<address@hidden> said:

bdowning> Here is a patch to implement an 'h:' head selector.
bdowning> 
bdowning> 'h:branch' expands to all the heads on 'branch'.  'h:'
bdowning> expands to all the heads on the current branch.  The branch
bdowning> name must be exactly specified.

Hmm, I'm working on a different idea that happens to use the same
selector letter.  My idea is to have a more generic head (or rather,
'head-most') selector, which would work by placing 'h:' before any
selector.  It only works when selectors are used to get one or more
revisions, and simply does erase_ancestors() on the bunch of fetched
revision ids.

The benefit is that it's not just reserved to branches, but can be
used with other selectors, such as c: (in which I have a personal
interest).

A few usage examples:

monotone log -r h:a:graydon
monotone update -r h:c:x-levitte-tested=yes

bdowning> :; monotone update -b net.venge.monotone.cvssync -r h:
bdowning> monotone: expanding selection 'h:'
bdowning> monotone: expanded to '7b88f7c9b843cae0b068b5232edf812c9b2b367d'
bdowning> monotone: selected update target 
7b88f7c9b843cae0b068b5232edf812c9b2b367d

Honestly, I can't quite understand why an update to another branch
doesn't automatically imply the head of that branch...

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]