Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: TortoiseMerge cannot diff when files are locked for write

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Back to topic list

Re: TortoiseMerge cannot diff when files are locked for write

Author otik
Full name Oto BREZINA
Date 2012-05-11 12:05:33 PDT
Message On 2012-05-11 20:59, Stefan Küng wrote:
> On 11.05.2012 02:07, Josh Green wrote:
>> Hi There,
>>
>> I'm trying to use TortoiseMerge to diff files while they are locked for write. I can easily open the files in notepad for read, but tortoiseMerge quits and says the files could not be accessed.
>>
>> Is it possible for tortoiseMerge to detect this then attempt to open them for read access instead?
>>
>> Is it already possible?
>> Perhaps I could do this myself somehow I guess?
> TMerge tries to open the files with GENERIC_READ access. If that fails,
> then you see the error message.
If we are talking about FileTextLines
     CAutoFile hFile = CreateFile(sFilePath, GENERIC_READ,
FILE_SHARE_READ, ...
MAYBE adding FILE_SHARE_WRITE would help?
>
> Don't know why you can open it in other apps though.
>
> Stefan
>


--
Oto BREZINA, mob: +421 903 653 470
If I toppost I do it because:

  * I don't have time to edit out irrelevant context and signatures
  * I expect you to remember the context for my email messages
  * I want you do the work to figure out what I said
  * My time is more important than your time
Attachments

« Previous message in topic | 3 of 9 | Next message in topic »

Messages

Show all messages in topic

TortoiseMerge cannot diff when files are locked for write joshg Josh Green 2012-05-10 17:07:01 PDT
     Re: TortoiseMerge cannot diff when files are locked for write steveking Stefan Küng 2012-05-11 11:59:41 PDT
         Re: TortoiseMerge cannot diff when files are locked for write otik Oto BREZINA 2012-05-11 12:05:33 PDT
             Re: TortoiseMerge cannot diff when files are locked for write steveking Stefan Küng 2012-05-11 12:08:30 PDT
                 Re: TortoiseMerge cannot diff when files are locked for write otik Oto BREZINA 2012-05-11 12:19:53 PDT
                     Re: TortoiseMerge cannot diff when files are locked for write steveking Stefan Küng 2012-05-11 12:25:18 PDT
                         Re: TortoiseMerge cannot diff when files are locked for write otik Oto BREZINA 2012-05-11 12:43:43 PDT
                             RE: Re: TortoiseMerge cannot diff when files are locked for write joshg Josh Green 2012-05-14 00:55:03 PDT
                                 Re: TortoiseMerge cannot diff when files are locked for write otik Oto BREZINA 2012-05-14 02:12:09 PDT
Messages per page: