[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: TortoiseMerge cannot diff when files are locked for write

From: Oto BREZINA <otik_at_printflow.eu>
Date: Fri, 11 May 2012 21:43:10 +0200

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-05-11 21:43:56 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.