[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: Suruchi Parimu <suruchiparimu_at_gmail.com>
Date: 2006-01-27 11:10:20 CET

Marc, Shirish and All,

Thanx... the per-commit hook sounds good...

I have another query... Subversion has provision whereby anybody can edit a
file without locking it unless the "Needs Lock" is specified... is there a
way by which we can have the "Needs Lock" set automatically when a file is
added. Of course the pre-commit hook can help here too, but is there a
solution other than that.

Regards,
Suruchi

----- Original Message -----
From: "Marc Haisenko" <haisenko@comdasys.com>
To: <users@subversion.tigris.org>
Cc: "Suruchi Parimu" <suruchiparimu@gmail.com>
Sent: Friday, January 27, 2006 3:14 PM
Subject: Re: anything corresponding to pinning in VSS

> 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 11:19:57 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.