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

If the "svn:eywords URL Author Date Rev Id" property is set on a file, and the file is open when a commit is attempted, TortoiseSVN will get "stuck" when it tries to copy back the modified file over the original (still open) file.

From: Eric Lee <Eric.Lee_at_siliconimage.com>
Date: 2006-11-03 18:29:44 CET

Hello.

I have been using the svn:keywords properties to store the author, rev,
etc. in the file (excel, word, visio) and like the funtionality (i.e. I
can still keep track of the version of the file after they have been
exported, which is really handy for template files).

One issue that I keep running into is that I like to commit fairly
regularly, and I often have 1 or 2 files still open.
What happens is that TortoiseSVN (ver 1.4.0 build 7501) will report an
error when it tries to copy the file with updated keywords back over the
original file.

After that point neither a commit or update will work, a commit gives
an error message of:
        Error: Commit failed (details follow):
        Error: Out of date: 'filename.vdx' in transaction '422-1'
        Error: You have to update your working copy first.

While an update gives an error of:
        Error: Failed to add file 'filename.vdx': object of the same
name already exists

To fix this I have to delete the file and update, or do some other
editing like that (i.e. change the filename in the repository, etc).

Is it possible to have TortoiseSVN open a dialog box saying something
like
        "Warning:The following files need be be closed to finish this
commit operation:
                File1.xls
                File2.doc
                etc."
And then retry after the user closes the warning dialog?

Note: I am not on the email list, please send replies directly to this
email account.

Regards,
Eric
Eric.lee@siliconimage.com
Received on Fri Nov 3 18:50:09 2006

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.