diff --diff-options argument ignored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
Matthäus G. Chajdas | ||
bzr (Debian) |
Fix Released
|
Unknown
|
Bug Description
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
affects bzr
Reported in Debian, 470006:
Package: bzr
Version: 1.2~rc1-1
Severity: normal
According documentation the argument --diff-options should be passed
to the
external diff program, but they aren't. As shown by the strace output
below
$ strace -f -eexecve bzr diff --using /usr/bin/diff --diff-options -wu
execve(
"--diff-options", "-wu"], [/* 47 vars */]) = 0
=== modified file 'changelog'
Process 8938 attached (waiting for parent)
Process 8938 resumed (parent 8937 ready)
[pid 8938] execve(
"new/changelog"], [/* 47 vars */]) = 0
This breaks debcommit when used on a bzr repository :(
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iQCVAwUBSDghewy
2ipywOu5I2ABQ4b
+l/MJ1F1a0wSX2N
+C3fp0vG5/U=
=EmKL
-----END PGP SIGNATURE-----
Related branches
- Martin Pool: Approve
- Vincent Ladeuil: Approve
-
Diff: 134 lines (+30/-12) (has conflicts)5 files modifiedNEWS (+5/-0)
bzrlib/builtins.py (+5/-5)
bzrlib/diff.py (+6/-3)
bzrlib/tests/blackbox/test_diff.py (+13/-4)
bzrlib/tests/features.py (+1/-0)
Changed in bzr: | |
status: | Unknown → New |
Changed in bzr: | |
status: | New → Confirmed |
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: | added: doc easy |
Changed in bzr: | |
status: | Confirmed → In Progress |
Changed in bzr: | |
assignee: | nobody → Matthäus G. Chajdas (anteru) |
status: | In Progress → Fix Released |
milestone: | none → 2.3b1 |
Changed in bzr (Debian): | |
status: | Confirmed → Fix Released |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jelmer Vernooij wrote:
> According documentation the argument --diff-options should be passed
> to the
> external diff program, but they aren't.
Yes they are.
As you may recall, diff --diff-options has been with us for many years,
and continues to work the same as it always has. It has nothing to do
with --using, except that they are mutually exclusive options.
$ bzr diff --diff-options -c
=== modified file 'baz'
*** baz 2008-05-25 07:31:25 +0000
- --- baz 2008-05-25 07:31:39 +0000
***************
*** 1 ****
! bar
- --- 1 ----
! qux
The --using option already allows command options to be specified, so
there's no reason why it would need to support --diff-options.
$ bzr diff --using 'diff -c'
=== modified file 'baz'
*** old/baz 2008-05-25 03:31:25.000000000 -0400
- --- new/baz 2008-05-25 03:31:39.000000000 -0400
***************
*** 1 ****
! bar
- --- 1 ----
! qux
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org
nu1YWqI0RArH+ AKCFlFCij2o/ uGHh7/bmYl9QKcd bRQCbB8zE E2ugQROPkB0=
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iD8DBQFIORaM0F+
SG144SWsSED+
=2rVc
-----END PGP SIGNATURE-----