Failed: (SharpSvn.SvnWorkingCopyException)

Issue:

Received the following error message:
svn update... failed (SharpSvn.SvnWorkingCopyException), trying to svn revert... Working copy 'C:\Users\UserName\AppData\Local\Temp\svn2tfs_634341628666363985_svn' locked

Full Log:
Starting importing...
Connecting to Team Foundation Server... Connected as UserName.
Connecting to SubVersion... Connected.
Creating workspace 'svn2tfsTempWorkspace.Desktop.DefaultDomain.tfs'...
Project mapped to 'C:\Users\UserName\AppData\Local\Temp\svn2tfs_634341628666363985_tfs'.
Retrieving files from server...
Workspace ready.
Warning: note field 'SvnRevision' does not exist in the specified team project, information will not be imported.
Warning: note field 'SvnLog' does not exist in the specified team project, information will not be imported.
Warning: note field 'SvnDate' does not exist in the specified team project, information will not be imported.
Ok, let's start!
1 / 21484 r1: svn checkout... tfs replay... tfs checkin... imported 1 action to cs5 in 3.4''.
2 / 21484 r2: svn update... tfs replay... tfs checkin... imported 1 action to cs6 in 0.2''.
...
...
111 / 21484 r111: svn update... tfs replay... tfs checkin... imported 1 action to cs115 in 2.2''.
112 / 21484 r112: svn update... failed (SharpSvn.SvnWorkingCopyException), trying to svn revert... Working copy 'C:\Users\UserName\AppData\Local\Temp\svn2tfs_634341628666363985_svn' locked
Exited.

Cause:

One of the working copies is locked. For more information on Locks see: http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html

Resolution:

  • If it is known what files are locked, they can be unlocked through svn via the command:
svn unlock --force http://svn.example.com/repos/project/raisin.jpg
  • Or, if you do not know what files are locked, and what files are not locked, run the command:
svn cleanup

Last edited Mar 2, 2011 at 10:41 PM by kminchau, version 1

Comments

No comments yet.