Bazaar and Hudson

Matt McClure mlm at aya.yale.edu
Mon Oct 27 11:38:24 GMT 2008


Guillermo,

On Mon, Oct 27, 2008 at 12:21 AM, Guillermo Gonzalez
<guillo.gonzo at gmail.com> wrote:
> On Mon, Oct 27, 2008 at 1:32 AM, Matt McClure <mlm at aya.yale.edu> wrote:
>> Here it is for the branch that the Hudson job creates:
>>
>> C:\Documents and Settings\mlm\.hudson\jobs\bzrp4\workspace>bzr
>> version-info bzrp4
>> revision-id: mlm at aya.yale.edu-20081026163152-943wcchxp7t94ytd
>> date: 2008-10-26 12:31:52 -0400
>> build-date: 2008-10-26 23:26:44 -0400
>> revno: 82
>> branch-nick: bzrp4
>>
> [snip]
>
> That's the expected output. Looking at the code, I realized that I'm
> splitting the lines using the system line separator, as you are in
> windows, it's not \n and that's what bzr send to output :p
>
> I just uploaded a new .hpi, with the fix applied.

That worked!  Thanks for the quick response.

Now that polling works, I think version-info isn't the right question
to ask.  The help says it shows information about a *tree*, whereas
you really want to know if there are new changes in the remote
*branch*.

In my case, the remote tree is out of date.

C:\home\mlm\sandbox\bzr-p4\bzr\continuous.integration.windows>bzr revno
82

C:\home\mlm\sandbox\bzr-p4\bzr\continuous.integration.windows>bzr version-info
revision-id: mlm at aya.yale.edu-20080823165408-v35s55mdgmefdike
date: 2008-08-23 12:54:08 -0400
build-date: 2008-10-27 07:30:41 -0400
revno: 72
branch-nick: continuous.integration.windows

When Hudson polls, it sees:

Started on Oct 27, 2008 7:37:11 AM
Fetching remote revision-info
Executing: version-info "--format=rio"
/home/mlm/sandbox/bzr-p4/bzr/continuous.integration.windows
Executing: version-info "--format=rio" bzrp4
remote revno:72 - local revno:82
Done. Took 2 sec
Changes found

Matt



More information about the bazaar mailing list