bzr always returns exit code 0 on win32
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Invalid
|
Medium
|
Unassigned |
Bug Description
If bzr branch fails on Windows, it returns zero (success) anyway. This makes it impossible for a script to act on the problem.
On Debian GNU/Linux x86_64 unstable, I run Windows XP in VirtualBox.
In a cygwin shell window, I branch like this:
bzr branch x:/bzrroot/
where x:/ is a VirtualBox "shared folder" into Linux's file system. The command prints: "bzr: ERROR: [Errno 13] Permission denied", but returns a zero error code so that my script thinks, it was successful, but fails to compile on the new tree. Repeating the same command, after removing the incomplete tree, succeeds. Always.
I wish to have bzr branch return a non-zero error code so that I can automize the removal and retry.
bzr version
Bazaar (bzr) 1.12rc1
Python interpreter: c:\Python25\
Python standard library: c:\Python25\lib
bzrlib: c:\Python25\
Bazaar configuration: C:\Documents and Settings\
Bazaar log file: C:\Documents and Settings\
...
tags: | added: win32 |
summary: |
- bzr branch returns zero on error on Windows + bzr always returns exit code 0 |
Changed in bzr: | |
importance: | Low → Medium |
status: | Incomplete → Confirmed |
tags: | added: mysql |
summary: |
- bzr always returns exit code 0 + bzr always returns exit code 0 on win32 |
Changed in bzr: | |
status: | Confirmed → Invalid |
On Linux, a permission denied error in branch does give an exit code of 3 for me.
Is this problem specific to bzr branch or do you get 0 if other commands fail? Try bzr diff?