Comment 1 for bug 774446

Revision history for this message
Dimitri John Ledkov (xnox) wrote : Re: bzr status always returns 0 exit code

bzr returns non-zero status when a real error happens. E.g. an exception is 3, a crash is 4.

Above can be triggered on $ bzr status, for example do `bzr status /'

You should be redirecting stdout and checking that instead. There is '-V, --versioned Only show versioned files.' option if that's what you are after.

git status returns 0, if it succeeds. the exit status doesn't depend on the VCS status of the files in the repository. Instead it indicates that the program did run & return correct output and exited successfully.