[RESEND][PATCH] Fix diffing unmodified against modified remote file
Patrick Steinhardt <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.tortoisesvn.devel |
|---|---|
| Message-ID | <20170320115119.GA615@pks-xps> |
Seems as if the first message from my work account didn't get through to the ML. Re-sending from my personal account as it should be known already. -- Hi, When having an unmodified but out-of-date local file which is to be diffed with an updated remote file (via "Check for modifications" -> "Check repository" -> "Compare with HEAD and BASE"), the resulting diff window is confusing the local and remote files. The left side will display the read-only local file while the right side will display the writable remote file, which is obviously wrong. The attached patch fixes the issue. Regards Patrick -- Patrick Steinhardt, Entwickler elego Software Solutions GmbH, http://www.elego.de Gebäude 12 (BIG), Gustav-Meyer-Allee 25, 13355 Berlin, Germany Sitz der Gesellschaft: Berlin, USt-IdNr.: DE 163214194 Handelsregister: Amtsgericht Charlottenburg HRB 77719 Geschäftsführer: Olaf Wagner
SVNDiff.cpp.patch
(text/x-diff, 710 B)
Index: SVNDiff.cpp
===================================================================
--- SVNDiff.cpp (revision 27746)
+++ SVNDiff.cpp (working copy)
@@ -151,7 +151,7 @@
{
// Hasn't changed locally - diff remote against WC
return CAppUtils::StartExtDiff(
- filePath, remotePath, n1, n3, filePath, filePath, SVNRev::REV_WC, remoteRev, remoteRev, CAppUtils::DiffFlags().AlternativeTool(m_bAlternativeTool),
+ remotePath, filePath, n3, n1, filePath, filePath, SVNRev::REV_WC, remoteRev, remoteRev, CAppUtils::DiffFlags().AlternativeTool(m_bAlternativeTool),
m_JumpLine, filePath.GetFileOrDirectoryName(), L"");
}
else if (remotePath.IsEmpty())
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEtmscHsieVjl9VyNUEXxntp6r8SwFAljPwjcACgkQEXxntp6r 8SxlTg/8DP9i53DvzeyGx9VrP58QTqN03E9UGIkazejSVfoKEobsjL/DWyOGSDJh 03VDPHdlaxRTamGwoqmn8ZrD9zlhju7Ey+mAjO7cafASOdiYdbO5g82XuSe5A5Zv KQML3USxVjvv0o0x2WhuwX1rv6eLCeD0oWtBUK6PB+NvWKsriUViUomXq+yles+w uwKHENzvH1XOg2OMmjCndWPbUKKHaLB0uPp06sf45ShAfBSyMpeRHxuaaDCEF/q0 60xWYJzYpiarW+6kdQOyc6mtem1ZZL6eAoJ3kpganBCpk4sbJbyO7Lu+fVKa10fo WLi1rfHpeaSN1+yNyO8hpvuW7ANEoHU5LEgdnMqWQ8xFhNzqLohdg9VsCUyhAjPS 0lxt+IVURiE+k1gohHO5AwPWPFFERoyBCjNShH5kIMZK/Yn1oB4rUZHmGhAwk9HP vTOKV3be5DJwHRdDtWyfTRC9Z0hpPzBafaFM5U4zeWWwsdwdkTDMv0DcZnZbEXNj yH4cENuDZMs8V8S7zaG7aJLAXL6T+L1Z11E47rqQVNUVhoOk80qqEQSSlpoIde5j iN3Z6CgPDn6576lDc4yD8+u9d4StOyzYykK/yTNK6R1eZ6jlVRWBWiHblmdrQYzJ VptpQMbYH7uEaRrOHTY7mlnR4PJJ1w5l+pXA2YwdH7QQ3N97tZs= =mmDj -----END PGP SIGNATURE-----