"bzr missing" should document return code meanings

Bug #308651 reported by Gleb Shchepa on 2008-12-16
Affects Status Importance Assigned to Milestone
Neil Martinsen-Burrell

Bug Description

 $ cd some-branch
 $ bzr missing
some output from bzr
 $ echo $? # this always prints 1 instead of 0

$ bzr version
Bazaar (bzr) 1.10
  Python interpreter: /usr/bin/python 2.5.2

Related branches

description: updated
Vincent Ladeuil (vila) wrote :

bzr missing returns 0 if nothing is missing and 1 if something is missing

Changed in bzr:
status: New → Invalid
Gleb Shchepa (gleb-mysql) wrote :

vila, do you know where is it documented?

Vincent Ladeuil (vila) wrote :

The best documentation I can find is in bzrlib.tests.blackbox.test_missing :->

GuilhemBichot (guilhem-bichot) wrote :

Salut Vincent. Yes, the return code rules of "bzr missing" is something I found by looking at code too; we see here that this is not sufficient documentation; it would be much better to have it mentioned in "bzr help missing" if possible. Thank you for considering this request.

Hash: SHA1

Gleb Shchepa wrote:
> Public bug reported:
> $ cd some-brach
> $ bzr missing
> some output from bzr
> $ echo $? # this always prints 1 instead of 0
> 1

This is the common status code policy for bzr. You'll find the same
thing with "bzr diff" as well.

Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


The doc for missing should mention the different values as diff does

Changed in bzr:
status: Invalid → Confirmed
Martin Pool (mbp) on 2009-07-02
summary: - normally executed "bzr missing" returns 1 to parent process instead of
- zero status code
+ "bzr missing" should document return code meanings
Changed in bzr:
importance: Undecided → Low
tags: added: easy
Changed in bzr:
assignee: nobody → Neil Martinsen-Burrell (nmb)
milestone: none → 2.1.0b4
status: Confirmed → Fix Released
SabreWolfy (sabrewolfy) wrote :

This is marked as fixed in 2.1.0b4. Where can I find a list of the return codes and what they mean?

From "bzr help missing":

Exit values:
    1 - some missing revisions
    0 - no missing revisions

Is there somewhere else that you would like to see this documented?
Some change to the language used that would make it more transparent
to you?

On Mon, Jul 23, 2012 at 8:29 AM, SabreWolfy <email address hidden> wrote:
> Partial answer here from February 2012:
> http://comments.gmane.org/gmane.comp.version-control.bazaar-
> ng.general/73804
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/308651
> Title:
> "bzr missing" should document return code meanings
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/bzr/+bug/308651/+subscriptions

SabreWolfy (sabrewolfy) wrote :

Thanks. I meant that it would be useful to have a list of return/exit codes to all commands, not just for "missing". Running "bzr help update" for example, does not include a list of return codes for that command.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers