Return code of bzr missing --this/--other ?

Rached Ben Mustapha benmur at gmail.com
Tue Jul 22 13:30:16 BST 2008


On Tue, Jul 22, 2008 at 2:21 PM, Matt Nordhoff
<mnordhoff at mattnordhoff.com> wrote:
> Rached Ben Mustapha wrote:
>> Hello,
>>
>> I was trying to use bzr missing --this and --other in a shell script
>> to automate some merging for non-tech users, and noticed that missing
>> --this returned with exit code 1, even if we only have extra revisions
>> on the local side. The missing command returns 1 if there are missing
>> revisions in any direction, not only in the direction the user asked
>> for.
>>
>> This is a bit annoying, as it makes scripting difficult, and I thought
>> writing a plugin for our workflow would be overkill :-).
>>
>> I didn't find a bugs.launchpad.net entry for this. I'm willing to cook
>> a test/patch, but first I'd like to be sure that it's not intended
>> behaviour.
>>
>> Thanks,
>>
>> Rached
>
> This was fixed in Bazaar 1.6b1.
>
> From NEWS:
>
>>     * ``bzr missing --mine-only`` will return status code 0 if you have no
>>       new revisions, but the remote does. Similarly for ``--theirs-only``.
>>       The new code only checks one side, so it doesn't know if the other
>>       side has changes. This seems more accurate with the request anyway.
>>       It also changes the output to print '[This|Other] branch is up to
>>       date.' rather than displaying nothing.  (John Arbash Meinel)
> --
>

Oh, nice, Thanks!

Rached



More information about the bazaar mailing list