Confusing error when 'diff' is missing

Bug #386656 reported by kripken
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

bzr diff --diff-options -w (or with =-w, "-w", ="-w") works fine on Ubuntu (producing a diff that ignores whitespace), but on Windows I get

=== modified file 'src/SConscript'
bzr: ERROR [Error 2] The system cannot find the file specified

This is happening because "--diff-options" causes bzr to use the external diff tool, which can not be found.

Bazaar should print a more sensible error if it can not find diff.exe.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 386656] [NEW] Diff options cause error on Windows

I wonder if we're outputting a path like
c:\\foo\\bar/src/Sconscript

-Rob

Revision history for this message
John A Meinel (jameinel) wrote : Re: Diff options cause error on Windows

I would actually guess that we can't find 'diff.exe', it isn't a program that we bundle with the installer.

You could try doing "bzr diff --diff-option -w -Derror" and we can check the traceback.

I'm pretty sure you need to install diff separately (as you do on Ubuntu, but it is almost always there)
http://gnuwin32.sourceforge.net/packages/patch.htm

is one possibility, I think there are others.

Changed in bzr:
status: New → Incomplete
Revision history for this message
kripken (kripkenstein) wrote :

John was right, installing the GNU diff tool manually fixes this issue.

(Sorry for the late response.)

Jelmer Vernooij (jelmer)
Changed in bzr:
status: Incomplete → Triaged
importance: Undecided → Low
summary: - Diff options cause error on Windows
+ Confusing error when 'diff' is missing
tags: added: difff win32
description: updated
Vincent Ladeuil (vila)
Changed in bzr:
status: Triaged → Confirmed
Jelmer Vernooij (jelmer)
tags: added: diff
removed: difff
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.