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

Re: BUG: revert fails on binary excel files without svn:needs-lock property

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-10-02 17:58:49 CEST

Jarmo Torvinen wrote:
> Tested on: TortoiseSVN 1.4.0, Build 7501 - 32 Bit
> OS: Windows XP SP2
>
> Steps to reproduce:
>
> 1) create an microsoft excel file and put it to a svn repository (file.xls)
> 2) make a couple of revisions of it (say revisions 1-10)
> 3) right click on file in explorer, select "update to revision",
> select some old revision like "4"
> 4) open the file in excel
> 5) do a svn update on the file
> 6) you'll get conflict window
> 7) close the file in excel (keep excel still open)
> 8) do a svn revert on the file (you'll get an empty dialog saying
> "revert finished")
> 9) see the explorer properties of the file, it'll show that it is the
> latest revision
> 10) rename the file to file2.xls (don't do svn rename, just regular one)
> 11) do a svn update in the folder so that file.xls gets recreated
> 12) compare file.xls and file2.xls, they are not the same file
>
>
> If you have the svn:needs-lock property set on the file, it works bit
> differently:
>
> 1 - 7) the same
>
> 8) you get dialog saying that the revert actually succeeded
> 9) show the properties on the file, it is the latest revision
> 10) rename to file2.xls
> 11) do svn update in the folder so that the file.xls gets recreated
> 12) compare file.xls and file2.xls, they are the same file
>
>
> I'm not quite sure is this a bug or a feature and does it consern the
> svn library or tortoise. Anyway, without the needs-lock-property you
> might end up with excel files that svn claims to
> be the latest but really are not.

It's a problem in the Subversion library. It doesn't handle situations
where files are kept open by other applications as well as it could.
Please report this problem on the Subversion mailing list.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Oct 2 17:59:09 2006

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

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