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

Re: anything corresponding to pinning in VSS

From: Marc Haisenko <haisenko_at_comdasys.com>
Date: 2006-01-27 10:44:59 CET

On Friday 27 January 2006 09:36, Suruchi Parimu wrote:
> Hi,
>
> I intend to shift from VSS to Subversion. Though i found almost all
> required features in Subversion, but was wondering if there's anything
> corresponding to pinning that we have in VSS. That's something like locking
> the files in such a way that nobody can edit it, not even the person who
> locked it.
>
> Please let me know of the solution to this problem.

You could achieve something like this with a pre-commit hook.

My idea would be like this:
- define your own property, say "pin"
- write a pre-commit hook that checks whether a file has this property
  set to "yes" or whatever
- reject the commit if the property is set
- but specifically allow setting the property "pin" to something else

On the client side you would do something like "svn propset pin yes myFile"
and commit that. From then on your pre-commit hook would reject every commit
that tries to alter the file except if you commit a "svn propset pin no
myFile".

> Regards,
> Suruchi

-- 
Marc Haisenko
Comdasys AG
Rüdesheimer Straße 7
D-80686 München
Tel:   +49 (0)89 - 548 43 33 0
Fax:   +49 (0)89 - 548 43 33 29
e-mail: haisenko@comdasys.com
http://www.comdasys.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 27 10:47:33 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.