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

Re: Visual Studio build fails because .svn\wc.db is open

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Fri, 10 Feb 2012 09:30:16 +0100

Am 10.02.2012 01:15, schrieb Steve Yates:
> For a variety of reasons the intent is for me to commit only compiled
> code to a repository. I admit I am a relative newbie to using a
> repository and TortoiseSVN.

This is typically an advanced user's choice to commit binaries... you
might want to discuss the reasons behind that.

> What I have done so far is:
>
> - Create a directory in my repository under /branches (as I was
> directed)
> - Checkout the empty branch to my populated build
> directory
> - SVN Commit the directory to the repository (which
> uploaded all the files)

In between you also "svn add"ed some files, otherwise there wouldn't
have been anything to upload.

> At this point if I try to build again, I get the message:
>
> Error 5 Unable to delete file "C:\Users\.....\Test
> Server\\.svn\wc.db". The process cannot access the file
> 'C:\Users\.....\Test Server\\.svn\wc.db' because it is being used by
> another process.
>
> So presumably that's because TortoiseSVN has wc.db open and thus
> Visual Studio can't delete it to repopulate the folder. How do I
> work around that?

SVN 1.7 only create a single .svn dir in the root of a working copy
(older SVNs did so in every versioned subdir!). If you now check out the
parent folder instead of the one where your working copy currently
begins, there won't be a .svn dir in the place where it currently causes
problems.

> Is there a better way to accomplish this?

You might want to take a look at svn_load_dirs. This tool syncs a folder
inside a repository with the state of a folder on disk. This would also
take care of adding and deleting files automatically, which is
reasonable when the files were already generated automatically.

Good luck!

Uli

**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2920443

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-02-10 09:30:54 CET

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.