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:43:43 PDT
Message On 2012-05-11 21:25, Stefan Küng wrote:
> On 11.05.2012 21:19, Oto BREZINA wrote:
>
>>> Not sure if that would be ok since I don't know of any way to detect that.
>> How is file which exposing reported problem locked for write? I guess it
>> not readonly file flag.
>> Can I simulate that?
> You can open a file with GENERIC_WRITE access and FILE_SHARE_READ. Then
> you could open that file for reading if you also allow FILE_SHARE_WRITE.
> But apps that open files for writing with FILE_SHARE_READ can do that
> easily: it's up to the reading app to deal with the issues I mentioned
> above.
In other words It would solve that issue, but would quite possibly
introduce other one.

If you read that file at once you should be in quite safe side. Other
solution would be to make copy to temp.
In either way what ever that file looks like at that moment would be
displayed.


--
Oto BREZINA

« Previous message in topic | 7 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: