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

Re: Lock and needs-lock together

From: Sven Brueggemann <SBrueggemann_at_gmx.net>
Date: 2006-04-27 19:59:46 CEST

Edward Harvey wrote:

> Can anyone tell me if this is possible?
> I would like to administratively set something, such that... If Joe
> locks a file, the file will automatically get "needs-lock" too. And
> when Joe releases the lock, the "needs-lock" is automatically removed.

There are subversion language bindings for several (scripting) languages
available you could try to write a hook script with that does this.

But I'm not sure if it will work: If you set the property in the
pre-lock hook, the user will try to lock a file that was changed by the
hook and is therefore outdated. If you do it in the post-lock hook,
the hook tries to change a file that is locked...

I understand that the problem you are trying to solve is to avoid
conflicts, when someone does heavy refactoring.

A common way to handle this is to do refactoring in a branch. This way,
others can commit smaller changes to the files and the collegue doing
the refactoring is responsible for merging these changes to his
branch.

You still have a problem when two developers decide to do heavy
refactoring on a file. This is were we come back to team
communication... You will be doomed without - or unproductive.

Kind regards

Sven

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Apr 27 19:59:58 2006

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

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