On Sun, 12 Nov 2006, Jochen Wiedmann wrote:
> On 11/12/06, Daniel Rall <email@example.com> wrote:
> >> in order to trigger some actions on remote changes, I would like to
> >> detect whether they are any. Think of it as a poor mans cruisecontrol,
> >> or continuum.
> >> My question is, how I may detect such changes. Of course, I can run
> >> "svn update" and parse the output for lines like "U changes.xml", but
> >> that doesn't attract me too much. Is there any better possibility?
> >Jochen, you want 'svn status -uv'.
> Thanks for the hint, Daniel, but how does that help me?
It does exactly what you asked for -- it detects changes to the
repository (without updating your WC).
Last I looked, CruiseControl implemented this via the equivalent of
'svn log -rBASE:HEAD'. This gives you less information, but you can
detect changes to the repository by the presence of any output.
> As far as I can see, it produces even more output than "svn update",
> which I have to parse?
If you use the command-line, that's correct. If you prefer to use one
of Subversion's API, you won't need to do any parsing, but would need
to iterate over the status results.
There is no direct "has the repository changed?" command.
Received on Tue Nov 14 00:22:17 2006
- application/pgp-signature attachment: stored