Cygwin+WindowsVisualDiffApp support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Difftools Plugin |
New
|
Undecided
|
Unassigned |
Bug Description
PLATFORM: Cygwin (using Bazaar from Cygwin shell)
WinMerge and other Windows VisualDiff/Merge applications require
Windows/POSIX filenames. Currently, WinMerge is started with
Cygwin-specific pathnames which WinMerge (and other apps) cannot handle.
REQUIRED-CHANGE:
On Cygwin platform, filenames should be converted to DOS/POSIX format.
It would even, if filepath transformation rules could registered for
some platforms or when the specific DiffTool is registered.
PATCH (QUICKFIX):
file:difftool.py
context:
...
# XXX-JE-PATCH: Cygwin-to-DOS Files Names.
import sys
if sys.platform == "cygwin":
# -- CYGWIN-ENIRONMENT: Running system but maybe call Windows apps.
# REQUIRE: Filename conversion to DOS-like filenames (POSIX).
# /cygdrive/
# /tmp/..
if new_path.
if old_path.
# XXX-JE-PATCH-END.
run_tool = [self.command] + diff_opts + [old_path, new_path]
# XXX-JE-PATCH: Cygwin-to-DOS Files Names.
debug_
if debug_visualdif
print "Bazaar difftool: %s" % " ".join(run_tool)
# XXX-JE-PATCH-END.