-
Committer:
Karl Fogel
-
Date:
2009-02-02 00:47:21 UTC
-
mto:
(3992.1.1 ianc-integration)
-
mto:
This revision was merged to the branch mainline in
revision
3993.
-
Revision ID:
kfogel@red-bean.com-20090202004721-657p8hfk6hm2p001
Part of bug #306394: Raise an error (code 3) when status is invoked on
nonexistent files; adjust tests to expect same.
After this change, bzr still prints nonexistent files in the normal
status output (under "nonexistent:", or with "X" in --short format),
but then errors at the end so the user knows they ran status on
non-existent files, and to match how commit would behave if invoked on
the same arguments.
This resulted from a conversation with Robert Collins in IRC, later
immortalized in https://lists.ubuntu.com/archives/bazaar/2009q1/052295.html.
* bzrlib/status.py
(show_tree_status): If there are nonexistent files, raise an error
about them at the very end.
* bzr/bzr-repo/bzr.dev-306394/bzrlib/tests/blackbox/test_status.py
(BranchStatus.test_status_nonexistent_file): Expect the error.
* bzrlib/tests/blackbox/test_status.py
(BranchStatus.test_tree_status_specific_files): Restore the
expectation of error that was lost in revno 3935.
* NEWS
(BUG FIXES): Update the description of the new behavior.