'bzr diff --old|new PATH' does silently exists if arg does not exist
Bug #596785 reported by
Parth Malwankar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
While viewing a diff I was getting nothing (not difference). I then realized I was passing incorrect PATH to --old/new. Bzr should show an error if path does not exist.
[bzrlib]% ls 300062-
ls: cannot access 300062-
[bzrlib]% bzr diff --new 300062-
[bzrlib]% bzr diff --old 300062-
[bzrlib]% bzr help diff | most
[bzrlib]% bzr version --short
2.2b3
[bzrlib]% bzr revno
5310
[bzrlib]%
Related branches
lp:~parthm/bzr/596785-diff-no-dir-error
- John A Meinel: Disapprove
-
Diff: 49 lines (+18/-0)3 files modifiedNEWS (+3/-0)
bzrlib/builtins.py (+5/-0)
bzrlib/tests/blackbox/test_diff.py (+10/-0)
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in bzr: | |
assignee: | nobody → Parth Malwankar (parthm) |
status: | Confirmed → In Progress |
tags: | added: diff |
tags: | added: check-for-breezy |
To post a comment you must log in.
Possibly related. Without the --old/new option, if we do a `bzr diff BRANCH` it silently exits. It doesn't make a difference if branches have common ancestry or not.
[emacs-bzr]% bzr diff ~/src/bzr.dev/trunk ignore- locking
[emacs-bzr]%
[emacs-bzr]% cd ~/src/bzr.dev/trunk
[trunk]% bzr diff ../cmd-
[trunk]%