2008/5/2 Srilakshmanan, Lakshman <lakshman.srilakshmanan_at_police.vic.gov.au>:
> Hi All,
>
> I find that a file with svn:needs-lock creates an exclusive lock only in the
> branch I am working in.
> My understanding was that creating an exclusive lock was to ensure
> serialised update on files (eg word docs) because they cannot be merged.
>
> Is there any way of preventing changes across branches till the latest copy
> of the file is merged into the branch before editing or alternatively is
> there a way of informing users on different branches that the file has been
> edited and they need to update their copy before proceeding.
I find this troublesome. The needs-lock tries to solve two different problems.
From the book: "Users and administrators alike are encouraged to
attach the svn:needs-lock property to any file which cannot be
contextually merged. This is the primary technique for encouraging
good locking habits and preventing wasted effort."
Case 1: Avoidance of wasted effort. Needs-lock is a good name for this.
Case 2: File types which can not be merged. svn:unmergable might be a
better name for this.
OTOH: I think svn:needs-lock semantics could be extended to mean
unmergable as well. There has been discussions of forcing merge
conflicts for files. Couldn't this be the solution?
/$
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-02 13:19:38 CEST