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

Re: svn cleanup doesn't work

From: Lieven Govaerts <lgo_at_mobsol.be>
Date: 2006-01-20 17:50:25 CET

Hi Roger,

You're problem is pretty typical for some environments; where I work, some of
the teams ( those using Visual Studio.NET ) report similar problems a lot.

I can give you some info:
- svn cleanup is not a tool that checks the working copy and starts to fix
problems. On each client action ( like svn update ) the svn code writes a log
file on disk with all actions it needs to do. It than hands over the command to
an 'engine' that reeds that log file and executes all actions one by one.
If one of those actions is interrupted, the client stops but a part of the log
file is still there. Svn cleanup will look for a log file and continu it's
execution, if possible.

- Before an svn update, subversion will start writing 'lock' files in the .svn
folders, to avoid you doing another update or commit action on the same working
copy at the same time.

- Some tools, like Visual Studio, sometimes lock files on your disk, to have
exclusive access ( eg. dll's during builds & execute ). When during an update
subversion tries to write to such a locked file, you'll typically get a failure
+ a locked working copy.

The typical workaround I give to users reporting such a problem is to move the
folder with the problem to a safe location, update the parent folder to recover
the now missing folder, and then if needed copy local changes over the fresh
files.

So, not really an answer to your question, but maybe it gave you a better view
on the problem.

regards,

Lieven.

Quoting Roger Lipscombe <rogerl@1e.com>:

> Using Subversion 1.2.3 client (with _svn hack) on Windows 2003 Server
> SP1, we get a problem where svn gets wedged and "svn cleanup" doesn't do
> anything:
>
>
>
> D:\Source\trunk\Products\Web Portal\WebPortal>svn update
>
> svn: Checksum mismatch for '_svn\text-base\Portal.aspx.cs.svn-base';
> recorded: '44e94189f57c908d785ed40903216501', actual:
> 'a7b7cf558d6a326be3df992a36878b1b'
>
>
>
> D:\Source\trunk\Products\Web Portal\WebPortal>svn update
>
> svn: Working copy '.' locked
>
> svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for
> details)
>
>
>
> D:\Source\trunk\Products\Web Portal\WebPortal>svn cleanup
>
> svn: In directory '.'
>
> svn: Can't copy '_svn\tmp\text-base\Portal.aspx.cs.svn-base' to
> 'Portal.aspx.cs.tmp': The system cannot find the file specified.
>
>
>
> Each time we ran svn cleanup, another file called Portal.aspx.cs.tmp.1,
> .2, .3, etc. appeared in the working copy, but we kept getting the same
> error. The _svn\text-base\Portal.aspx.cs.svn-base file did exist.
>
>
>
> In the end, I had to remove the _svn directory and replace it with one
> from a freshly checked out copy of the relevant directory, at which
> point svn update worked correctly.
>
>
>
> I don't know what caused the checksum mismatch - this happened on a
> colleague's PC.
>
>
>
> So: what does "svn cleanup" actually do? Why didn't it actually clean
> up?
>
>
>
> Cheers,
>
> Roger.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 20 17:52:36 2006

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