Merge lp:~parthm/bzr/596785-diff-no-dir-error into lp:bzr
Proposed by Parth Malwankar
| Status: | Rejected |
|---|---|
| Rejected by: | John A Meinel |
| Proposed branch: | lp:~parthm/bzr/596785-diff-no-dir-error |
| Merge into: | lp:bzr |
| Diff against target: | 49 lines (+18/-0) 3 files modified NEWS (+3/-0) bzrlib/builtins.py (+5/-0) bzrlib/tests/blackbox/test_diff.py (+10/-0) |
| To merge this branch: | bzr merge lp:~parthm/bzr/596785-diff-no-dir-error |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| John A Meinel | Disapprove | ||
| Review via email: | |||
Commit message
`bzr diff --old|new PATH` now show an error if PATH is not a directory. Fixes #596785.
Description of the change
=== Fixed Bug #596785 ===
`bzr diff --old|new PATH` now show an error if PATH is not a dir. Without this patch it exists silently which is confusing (i.e. no diff output).
To post a comment you must log in.
Unmerged revisions
- 5326. By Parth Malwankar
-
updated NEWS
- 5325. By Parth Malwankar
-
diff now raises an error if --old/new are supplied invalid path.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Parth Malwankar wrote: /bugs.launchpad .net/bugs/ 596785
> Parth Malwankar has proposed merging lp:~parthm/bzr/596785-diff-no-dir-error into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
> Related bugs:
> #596785 'bzr diff --old|new PATH' does silently exists if arg does not exist
> https:/
>
>
> === Fixed Bug #596785 ===
> `bzr diff --old|new PATH` now show an error if PATH is not a dir. Without this patch it exists silently which is confusing (i.e. no diff output).
>
>
old and new can be URLs which will fail your isdir() check, but not fail
to work.
merge: rejected
If you really want something like this, use a check something like:
if old is not None and old_tree is None:
fail
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
o0REACgkQJdeBCY SNAANIIgCgkW2tt dDtydFdKxdYF9LI 5Ard 89oOLH31v5C5eC4 G6
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw
1EcAoIGBngukt8Y
=ghVe
-----END PGP SIGNATURE-----