You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Paul Maddox <P....@signal.QinetiQ.com> on 2006/03/14 15:39:57 UTC

Problem with deleting files

All,

 We've had a couple of odd things crop up.
I've tried to delete a file, and perform a commit.

there's a bit of history around this, so I'll explain..
once upon a time, there was a branch with a directory structure.
When doing a merge and re-branch some kind user forgot to drop their locks.
Anyway, after the branch, the file was subsequently deleted.

Now if I try and remove this old directory I get an error, saying I can't
because the file is currently locked by another user, even though the file
is no longer there.
I get this ;-

---------------------------------------------------
Error commit failed
User paul does now own lock on path
'/monkey/myproject/branches/development/documentation/spec.doc'
(currently locked by idiotuser2)
---------------------------------------------------

I can't 'get' or 'steal' the locks because, well there's nothing there to
get or steal!
I've tried creating a file with the same name, commiting, 'dropping the
locks, and trying to delete again, but I get the same error.

we're using tortoise SVN on the clients and the server is using SVN version
1.2.3

Can anyone offer any advice.

Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem with deleting files

Posted by Matt Doran <ma...@papercut.biz>.
(forgot to cc list the first time)

Paul Maddox wrote:
>> there's a bit of history around this, so I'll explain..
>> once upon a time, there was a branch with a directory structure.
>> When doing a merge and re-branch some kind user forgot to drop their 
>> locks.
>> Anyway, after the branch, the file was subsequently deleted.
>>
>> Now if I try and remove this old directory I get an error, saying I 
>> can't
>> because the file is currently locked by another user, even though the 
>> file
>> is no longer there.
>> I get this ;-
>>
>> ---------------------------------------------------
>> Error commit failed
>> User paul does now own lock on path
>> '/monkey/myproject/branches/development/documentation/spec.doc'
>> (currently locked by idiotuser2)
>> ---------------------------------------------------
>>
>> I can't 'get' or 'steal' the locks because, well there's nothing 
>> there to
>> get or steal!
>> I've tried creating a file with the same name, commiting, 'dropping the
>> locks, and trying to delete again, but I get the same error.
>>
>> we're using tortoise SVN on the clients and the server is using SVN 
>> version
>> 1.2.3
>>
>
Have you tried removing the locks using "svnadmin"?

You need to run this on the server hosting the repository.  The syntax is:

   svnadmin rmlocks REPOS_PATH LOCKED_PATH

I think there is already an issue for this:

   http://subversion.tigris.org/issues/show_bug.cgi?id=2507

Cheers,
Matt


Re: Problem with deleting files

Posted by Paul Maddox <P....@signal.QinetiQ.com>.
Hi,

> Im not an expert but I would try to check out the earlier release where 
> the files were locked and try to steal the locks there.

Thanks, I've tried that, no luck :-(

> Yep, at least it is unexpected behaviour. I'd say that either it should 
> not have let you remove  locked files or remove the locks with them.

Agreed,

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem with deleting files

Posted by Bernd Tegge <be...@hereschwerke.com>.
Paul Maddox schrieb:
> So, no-one can offer any helpfull advice?
Im not an expert but I would try to check out the earlier release where 
the files were locked and try to steal the locks there.
>
> I'll add it as a bug then,
Yep, at least it is unexpected behaviour. I'd say that either it should 
not have let you remove  locked files or remove the locks with them.
>
> Paul
>
> ----- Original Message ----- From: "Paul Maddox" 
> <P....@signal.QinetiQ.com>
> To: <us...@subversion.tigris.org>
> Sent: Tuesday, March 14, 2006 3:39 PM
> Subject: Problem with deleting files
>
>
>> All,
>>
>> We've had a couple of odd things crop up.
>> I've tried to delete a file, and perform a commit.
>>
>> there's a bit of history around this, so I'll explain..
>> once upon a time, there was a branch with a directory structure.
>> When doing a merge and re-branch some kind user forgot to drop their 
>> locks.
>> Anyway, after the branch, the file was subsequently deleted.
>>
>> Now if I try and remove this old directory I get an error, saying I 
>> can't
>> because the file is currently locked by another user, even though the 
>> file
>> is no longer there.
>> I get this ;-
>>
>> ---------------------------------------------------
>> Error commit failed
>> User paul does now own lock on path
>> '/monkey/myproject/branches/development/documentation/spec.doc'
>> (currently locked by idiotuser2)
>> ---------------------------------------------------
>>
>> I can't 'get' or 'steal' the locks because, well there's nothing 
>> there to
>> get or steal!
>> I've tried creating a file with the same name, commiting, 'dropping the
>> locks, and trying to delete again, but I get the same error.
>>
>> we're using tortoise SVN on the clients and the server is using SVN 
>> version
>> 1.2.3
>>
>> Can anyone offer any advice.
>>
>> Paul
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem with deleting files

Posted by Paul Maddox <P....@signal.QinetiQ.com>.
All,

Thanks to Matt for his help, that worked a treat, on one of the problem 
branches
:-)

This one is a bit more 'tricky'
The basic problem is the same, but there's a twist

Here's the error message-
 ---------------------------------------------------
 Error commit failed
 User paul does now own lock on path
 /monkey/myproject/branches/documentation/specs/My
 file.doc
 (currently locked by idiotuser2)
 ---------------------------------------------------

The twist is, the file is actually ;-
 /monkey/myproject/branches/documentation/specs/My file.doc

It seems that the comitt is treating the 'space' as a directory delimiter
(ie.a '/')

Using the SVNADMIN rmlocks doesn't work, I've tried using double quotes (ie.
"path with space") around the path and also single quotes (ie. 'path with
space') and neither works.

Many thanks in advance,
Paul

----- Original Message ----- 
From: "Matt Doran" <ma...@papercut.biz>
Cc: <us...@subversion.tigris.org>
Sent: Friday, March 17, 2006 11:26 AM
Subject: Re: Problem with deleting files


> (forgot to cc list the first time)
>
> Paul Maddox wrote:
>>> there's a bit of history around this, so I'll explain..
>>> once upon a time, there was a branch with a directory structure.
>>> When doing a merge and re-branch some kind user forgot to drop their
>>> locks.
>>> Anyway, after the branch, the file was subsequently deleted.
>>>
>>> Now if I try and remove this old directory I get an error, saying I
>>> can't
>>> because the file is currently locked by another user, even though the
>>> file
>>> is no longer there.
>>> I get this ;-
>>>
>>> ---------------------------------------------------
>>> Error commit failed
>>> User paul does now own lock on path
>>> '/monkey/myproject/branches/development/documentation/spec.doc'
>>> (currently locked by idiotuser2)
>>> ---------------------------------------------------
>>>
>>> I can't 'get' or 'steal' the locks because, well there's nothing
>>> there to
>>> get or steal!
>>> I've tried creating a file with the same name, commiting, 'dropping the
>>> locks, and trying to delete again, but I get the same error.
>>>
>>> we're using tortoise SVN on the clients and the server is using SVN
>>> version
>>> 1.2.3
>>>
>>
> Have you tried removing the locks using "svnadmin"?
>
> You need to run this on the server hosting the repository.  The syntax is:
>
>   svnadmin rmlocks REPOS_PATH LOCKED_PATH
>
> I think there is already an issue for this:
>
>   http://subversion.tigris.org/issues/show_bug.cgi?id=2507
>
> Cheers,
> Matt
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem with deleting files

Posted by Paul Maddox <P....@signal.QinetiQ.com>.
So, no-one can offer any helpfull advice?

I'll add it as a bug then,

Paul

----- Original Message ----- 
From: "Paul Maddox" <P....@signal.QinetiQ.com>
To: <us...@subversion.tigris.org>
Sent: Tuesday, March 14, 2006 3:39 PM
Subject: Problem with deleting files


> All,
>
> We've had a couple of odd things crop up.
> I've tried to delete a file, and perform a commit.
>
> there's a bit of history around this, so I'll explain..
> once upon a time, there was a branch with a directory structure.
> When doing a merge and re-branch some kind user forgot to drop their 
> locks.
> Anyway, after the branch, the file was subsequently deleted.
>
> Now if I try and remove this old directory I get an error, saying I can't
> because the file is currently locked by another user, even though the file
> is no longer there.
> I get this ;-
>
> ---------------------------------------------------
> Error commit failed
> User paul does now own lock on path
> '/monkey/myproject/branches/development/documentation/spec.doc'
> (currently locked by idiotuser2)
> ---------------------------------------------------
>
> I can't 'get' or 'steal' the locks because, well there's nothing there to
> get or steal!
> I've tried creating a file with the same name, commiting, 'dropping the
> locks, and trying to delete again, but I get the same error.
>
> we're using tortoise SVN on the clients and the server is using SVN 
> version
> 1.2.3
>
> Can anyone offer any advice.
>
> Paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org