logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Notify script available: msg#00161

Subject: Re: Notify script available
In message <20050331.142405.13767870.richard@xxxxxxxxxxx> on Thu, 31 Mar 2005 
14:24:05 +0200 (CEST), Richard Levitte - VMS Whacker <richard@xxxxxxxxxxx> said:

richard> In message <20050331102308.GB16601@xxxxxxxxxxxxxxxxxx> on Thu, 31 Mar 
2005 02:23:08 -0800, Nathaniel Smith <njs@xxxxxxxxx> said:
richard> njs> The script I had in mind when adding some of these commands:
richard> njs> 
richard> njs> #!/bin/sh
richard> njs> # Do a pull, and print out all newly received revisions, in commit
richard> njs> # order
richard> njs> OLD_LEAVES=`monotone --db=foo.db automate leaves`
richard> njs> monotone pull
richard> njs> NEW_LEAVES=`monotone --db=foo.db automate leaves`
richard> njs> (for L in $NEW_LEAVES; do
richard> njs>   monotone --db=foo.db automate ancestry_difference $L $OLD_LEAVES
richard> njs> done) | xargs monotone automate toposort
richard> 
richard> That looks quite nice, and really solves a major part of my
richard> script.  I can still use those database variables and make
richard> the above, just get OLD_LEAVES in a different manner...

Hmm, I just realised that automate leaves doesn't quite do what I
want.  I want to be able to select leaves from particular branches,
and as far as I can see, automate leaves doesn't provide such a
feature.  For my purposes, it would then be quite a bit better to use
automate heads, looping over branches...

Still, automate ancestry_differences and automate toposort solve other
parts of my script (that are buggy!) quite well.  All I need now is
automate log and automate changes, then I'll be able to make it really
simple.  Hmm, maybe I can create automate log, at the very least...

Cheers,
Richard

P.S. for those who wonder: I've started playing with IRC.  My identity
is gizmo1, and has been since...  oh, I think 1989 or earlier...

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

-- 
Richard Levitte                         richard@xxxxxxxxxxx
                                        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



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>