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

RE: Problem with needs-lock

From: Nicolas Bottarini <nicolas_at_avatarla.com>
Date: 2005-12-15 15:16:24 CET

I tried to recreate the problem without using the tortoise. When I use
propget the property is set on the server to "*". The problem is that when I
update the file it doesn't become readonly and when I make a commit of that
file without locking it the server don't throw any error, I can commit the
file as any other file.

Thank for your help

Nicolas

-----Mensaje original-----
De: Bruce Webber [mailto:brucewebber@fastmail.us]
Enviado el: Miércoles, 14 de Diciembre de 2005 04:01 p.m.
Para: users@subversion.tigris.org
Asunto: RE: Problem with needs-lock

--Nicolas Bottarini <nicolas@avatarla.com> wrote:

> Thanks for the response bruce. I commited the file but the problem
> persists.
>
> It's very strange... because with the windows server I had no problem

I have no idea what the problem could be. I suggest that you try to
reproduce the problem using svn commands in a command window, rather than
using TortoiseSVN. This will remove Tortoise from the picture, and perhaps
give additional information. Maybe someone else will have a suggestion.

Start with a file that does not have the needs-lock property (assume the
file is called test.txt). You can make sure with the command:

    svn propget svn:needs-lock test.txt

You should see no output from this command if the property is not set.

Next, set the property:

    svn propset svn:needs-lock "*" test.txt

You should see a message indicating that the property was set.

Now commit:

    set EDITOR=notepad.exe
    svn commit

(The first command tells svn what editor to use for the commit comments.)

Now check the repository:

    svn propget svn:needs-lock test.txt -r HEAD

Hopefully this will shed some light.

-- 
Bruce Webber
brucewebber@fastmail.us
http://brucewebber.us
---------------------------------------------------------------------
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
Received on Thu Dec 15 15:19:28 2005

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