Fwd: Re: [Buildbot-devel] Re: release clock started
olv.bonnet at free.fr
Mon May 22 14:21:30 UTC 2006
On 5/22/06, Brian Warner <warner-buildbot at lothar.com> wrote:
> The failure of that check probably means that the regexp used by the
> buildslave-side SVN checkout command failed to match. I think it uses 'svn
> info' and looks for 'Revision: NNN' in the output. I'm pretty sure I set it
> up to use LC_ALL=C, but maybe I screwed that up.
I've become addicted to the handy 'svnversion' tool that comes along
with subversion and that is intended just for that kind of use (see
below). Switching to it instead of relying on the output of 'svn info'
might solve this kind of problem.
[olivier at 40:/Volumes/Data/Dev]% svnversion --help
usage: svnversion [OPTIONS] [WC_PATH [TRAIL_URL]]
Produce a compact 'version number' for the working copy path
WC_PATH. TRAIL_URL is the trailing portion of the URL used to
determine if WC_PATH itself is switched (detection of switches
within WC_PATH does not rely on TRAIL_URL). The version number
is written to standard output. For example:
$ svnversion . /repos/svn/trunk
The version number will be a single number if the working
copy is single revision, unmodified, not switched and with
an URL that matches the TRAIL_URL argument. If the working
copy is unusual the version number will be more complex:
4123:4168 mixed revision working copy
4168M modified working copy
4123S switched working copy
4123:4168MS mixed revision, modified, switched working copy
If invoked on a directory that is not a working copy, an
exported directory say, the program will output 'exported'.
If invoked without arguments WC_PATH will be the current directory.
-n [--no-newline] : do not output the trailing newline
-c [--committed] : last changed rather than current revisions
-h [--help] : display this help
--version : show version information
More information about the devel