Re regression test: in bzrlib/tests/blackbox/test_status.py I see
test_status_nonexistent_file(), which looks for the current behavior:
def test_status_nonexistent_file(self):
# files that don't exist in either the basis tree or working tree
# should give an error
wt = self.make_branch_and_tree('.')
out, err = self.run_bzr('status does-not-exist', retcode=3) self.assertContainsRe(err, r'do not exist.*does-not-exist')
Does that test mean that the current behavior is desirable for some
reason, and should not be considered a bug? Otherwise, I'll simply
adjust this test to expect a non-fatal warning instead of an error.
Or if the current behavior (fatal error) is desirable, then we should
probably close the bug as invalid.
I'm working on bug #306394 ("bzr status should not ignore all other
command line arguments when passed a non-existent file").
The basic fix is here (review welcome!):
http:// bazaar. launchpad. net/~kfogel/ bzr/306394- status- tolerate- nonexistent/ revision/ 3910
Re regression test: in bzrlib/ tests/blackbox/ test_status. py I see nonexistent_ file(), which looks for the current behavior:
test_status_
def test_status_ nonexistent_ file(self) : branch_ and_tree( '.') bzr('status does-not-exist', retcode=3)
self.assertCon tainsRe( err, r'do not exist.* does-not- exist')
# files that don't exist in either the basis tree or working tree
# should give an error
wt = self.make_
out, err = self.run_
Does that test mean that the current behavior is desirable for some
reason, and should not be considered a bug? Otherwise, I'll simply
adjust this test to expect a non-fatal warning instead of an error.
Or if the current behavior (fatal error) is desirable, then we should
probably close the bug as invalid.
Thanks,
-Karl