TortoiseMerge: During save file, share read access

ch3cooli <[email protected]>
Newsgroups gmane.comp.version-control.subversion.tortoisesvn.devel
Message-ID <488858236.6904.1458052406730.JavaMail.httpd@localhost>
TortoiseMerge: During save file, share read access

example: 
Open C:\repo\abc.txt in Atom Text Editor

Use TortoiseMerge to edit and save file C:\repo\abc.txt.

Atom shows error in orange prompt
---------------------------------
Unable to read file after file change event. Make sure you have permission to access
C:\repo\abc.txt
EBUSY: resource busy or locked, open 'C:\repo\abc.txt'

No such problem if the file is edited by other programs such as notepad++

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3166039

To unsubscribe from this discussion, e-mail: [[email protected]].
FileTextLines.cpp.patch (application/octet-stream, 719 B)
Index: src/TortoiseMerge/FileTextLines.cpp
===================================================================
--- src/TortoiseMerge/FileTextLines.cpp	(revision 27241)
+++ src/TortoiseMerge/FileTextLines.cpp	(working copy)
@@ -492,7 +492,7 @@
         }
 
         CStdioFile file;            // Hugely faster than CFile for big file writes - because it uses buffering
-        if (!file.Open(sFilePath, CFile::modeCreate | CFile::modeWrite | CFile::typeBinary))
+        if (!file.Open(sFilePath, CFile::modeCreate | CFile::modeWrite | CFile::typeBinary | CFile::shareDenyWrite))
         {
             const_cast<CString *>(&m_sErrorString)->Format(IDS_ERR_FILE_OPEN, (LPCTSTR)sFilePath);
             return FALSE;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.