[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 11 May 2012 21:25:10 +0200

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.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2959496
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-05-11 21:25:23 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.