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

Re: Enforcing the lock of a file prior to its commit.

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2006-07-21 16:44:12 CEST

> No, cause if you try it, you could commit a file with that property set
> even though you havent locked it. The trick is to just remove the
> read-only flag on that file, modify it and then commit it. Try it and you
> will see
> that locks as they are appear to be totaly useless.
>
>
> Luca
>
> p.s. Please do not start arguing about the meaning of the life and so on,
> i need that feature as i said (i would like to commit only if the file was
> prior locked by the commiter).

Actually, you do need to think about the meaning of life: You really
need to think about your real problem, because there is *no* guarantee
that if someone has locked a file which he modified locally that he
will be able to commit that file (by reversing the modify/lock steps).

If you have an old version of said binary file, there's no way that
file is going to enter the repository without trickery (trickery which
will destroy the modifications of the file in the repository).

bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 21 16:45:33 2006

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