[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Notify script available
From: |
Richard Levitte - VMS Whacker |
Subject: |
Re: [Monotone-devel] Notify script available |
Date: |
Thu, 31 Mar 2005 17:44:14 +0200 (CEST) |
In message <address@hidden> on Thu, 31 Mar 2005 14:24:05 +0200 (CEST), Richard
Levitte - VMS Whacker <address@hidden> said:
richard> In message <address@hidden> on Thu, 31 Mar 2005 02:23:08 -0800,
Nathaniel Smith <address@hidden> 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 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