[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Re: How to 3-way merge with kdiff3 and Cygwin?
From: |
Lapo Luchini |
Subject: |
[Monotone-devel] Re: How to 3-way merge with kdiff3 and Cygwin? |
Date: |
Wed, 03 Nov 2010 22:40:43 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.15) Gecko/20101027 SeaMonkey/2.0.10 |
Graydon Hoare wrote:
> Boris wrote:
>
>> How do others merge on Cygwin?
>
> I use the following entries in my monotonerc file. Something like this
> should probably be fixed up in mainline; we're not very useful on cygwin.
Unfortunately this is still useful:
(please notice it is only working based on the assumption that $TMP
resides in /cygdrive/c/ which might well not be the case)
function cygpath(p)
p = string.gsub(p, "/", "\\")
p = string.gsub(p, "\\cygdrive\\c", "C:")
return p
end
mergers.kdiff3 = {
cmd = function (tbl)
local path = "kdiff3"
local ret = execute(path,
"--L1", tbl.anc_path,
"--L2", tbl.left_path,
"--L3", tbl.right_path,
cygpath(tbl.afile),
cygpath(tbl.lfile),
cygpath(tbl.rfile),
"--merge",
"--o",
cygpath(tbl.outfile))
if (ret ~= 0) then
io.write(string.format(gettext("Error running merger '%s'\n"),
path))
return false
end
return tbl.outfile
end,
available = function () return program_exists_in_path("kdiff3") end,
wanted = function () return true end
}
--
Lapo Luchini - http://lapo.it/
“I couldn't help but overhear, probably because I was eavesdropping.”
(anonymous)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-devel] Re: How to 3-way merge with kdiff3 and Cygwin?,
Lapo Luchini <=