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

Re: Cleanup unable to recover from trying to add now-missing file

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Tue, 19 Feb 2013 12:48:49 +0000

On 19 February 2013 09:42, <Gunter.Koenigsmann_at_semikron.com> wrote:
> Dear all,
>
> One of the last updates of tsvn introduced a new behavior that makes
> live harder for me and my collegues uning TSVN:
> If you accidentally add a temporary file and try to commit it only
> after the system has deleted it again SVN aborts the commit and sets the
> working copy state to "locked" which for me is fine: The user has
> ordered to do something that has failed.

I just tried adding a file, deleting it in explorer and then
committing. You get an error, but it cleans itself up OK and is then
OK to commit. You'll need to describe the steps you took in more
detail.

> Cleaning up the repository afterwards with the "TortoiseSVN/Cleanup"
> button won't be able to restore the repo into a usable state, though, as
> long as the file is still missing. And the standard way of resolving the
> problem: Deleting the directory the problem is in and trying to update
> or at least clean up afterwards - leaves the repo in a state that is
> nearly impossible to recover from from the sight of a average user.

This should not affect the repository at all. Are you using the terms
"repository" and "working copy" interchangeably? They are completely
different things.

> Since this seem to happen rather frequently in the last few days I
> thought I'd better to report this to the list. Don't know if it would be
> better to prevent from trying to commit non-existing files (Might be
> more transparent to the user but I cannot see how to prevent a race
> condition if the file is deleted during the commit) or to empower the
> cleanup allowing it to revert the add that went wrong.

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3049285
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-02-19 13:48:55 CET

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.