You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "C. Michael Pilato" <cm...@collab.net> on 2005/04/07 21:30:48 UTC
svn.collab.net Subversion upgraded to 1.2.0-rc1
May the locking begin.
(Seriously, we might want to consider pre-emptively adding notes to
HACKING about a locking policy...)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Locking on svn.collab.net (was svn.collab.net Subversion upgraded to 1.2.0-rc1)
Posted by "C. Michael Pilato" <cm...@collab.net>.
Travis <sv...@castle.fastmail.fm> writes:
> On Apr 12, 2005, at 12:00 PM, C. Michael Pilato wrote:
>
> > So how about if I make the pre-lock hook script disallow locks on
> > paths that don't have svn:needs-lock set? ....
Done.
> Yeah, sounds like a great contrib hook script because I'm going to
> want the same behavior and I imagine lots more people will too. :-)
Done. See .../contrib/hook-scripts/pre-lock-require-needs-lock.py
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Locking on svn.collab.net (was svn.collab.net Subversion upgraded to 1.2.0-rc1)
Posted by Travis <sv...@castle.fastmail.fm>.
On Apr 12, 2005, at 12:00 PM, C. Michael Pilato wrote:
> So how about if I make the pre-lock hook script disallow locks on
> paths that don't have svn:needs-lock set? ....
>
> Thoughts?
Yeah, sounds like a great contrib hook script because
I'm going to want the same behavior and I imagine
lots more people will too. :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Locking on svn.collab.net (was svn.collab.net Subversion upgraded to 1.2.0-rc1)
Posted by "C. Michael Pilato" <cm...@collab.net>.
Ben Collins-Sussman <su...@collab.net> writes:
> > First, we keep our repository running the most recent release so we
> > can eat our own dog food, yes, but that is a far cry from treating
> > that repository as a testbed. I don't want my (or anyone's else's)
> > work hindered because some well-intending developer is "testing"
> > locking on our live repository.
>
> Ah, understood. I can see that it might get annoying.
Cool.
> > Secondly, since we're aren't going to be "testing" locking using our
> > repository (see above), it follows that the only type of locking in
> > use there will be real, I-gotta-lock-to-save-folks-from-wasting-time
> > locking. And I think that lock emails play a key role in preventing
> > people from wasting time.
>
> This I agree with... we should set the svn:needs-lock property on some
> binary files, perhaps some images in www/ or something, at leave it at
> that. We could have a pre-lock hook that rejects a lock on anything
> that *doesn't* have an svn:needs-lock property already.
>
> I don't think we need to block on teaching mailer.py to send
> lock-emails. Yes, it's a nice extra bit of communication. But since
> (I believe) all svn developers use reasonable editors, the
> svn:needs-lock property isn't in a danger of being accidentally
> ignored (hijacked). While it's nice to get an active email saying
> that you locked an image file, it's also perfectly fine for me to
> discover that fact when I run 'svn lock', no? It doesn't seem like a
> blocker to me. svn:needs-lock is one type of communication, mailer.py
> is a 2nd type of communication. I don't think we need to have both
> features in order to start making basic use of locks.
Alrighty, that's cool. I follow your reasoning, and concur.
So how about if I make the pre-lock hook script disallow locks on
paths that don't have svn:needs-lock set? That way, we limit our need
for communication mechanisms to the one mechanism we currently have.
Thoughts?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Locking on svn.collab.net (was svn.collab.net Subversion upgraded to 1.2.0-rc1)
Posted by Ben Collins-Sussman <su...@collab.net>.
On Apr 12, 2005, at 11:39 AM, C. Michael Pilato wrote:
> Ben Collins-Sussman <su...@collab.net> writes:
>
>> Yet when I read your mail, it looks much the same as cmpilato's: I
>> see some sort of hatred of locks, or some perceived
>> danger/annoyance, with no explanation. Can we have a rational
>> debate, other than just blind voting?
>
> Hatred of locks? Oh, please.
>
> Perceived danger? Er. No.
>
> Perceived annoyance? Yes. In fact, two of them.
>
> First, we keep our repository running the most recent release so we
> can eat our own dog food, yes, but that is a far cry from treating
> that repository as a testbed. I don't want my (or anyone's else's)
> work hindered because some well-intending developer is "testing"
> locking on our live repository.
Ah, understood. I can see that it might get annoying.
>
> Secondly, since we're aren't going to be "testing" locking using our
> repository (see above), it follows that the only type of locking in
> use there will be real, I-gotta-lock-to-save-folks-from-wasting-time
> locking. And I think that lock emails play a key role in preventing
> people from wasting time.
This I agree with... we should set the svn:needs-lock property on some
binary files, perhaps some images in www/ or something, at leave it at
that. We could have a pre-lock hook that rejects a lock on anything
that *doesn't* have an svn:needs-lock property already.
I don't think we need to block on teaching mailer.py to send
lock-emails. Yes, it's a nice extra bit of communication. But since
(I believe) all svn developers use reasonable editors, the
svn:needs-lock property isn't in a danger of being accidentally ignored
(hijacked). While it's nice to get an active email saying that you
locked an image file, it's also perfectly fine for me to discover that
fact when I run 'svn lock', no? It doesn't seem like a blocker to me.
svn:needs-lock is one type of communication, mailer.py is a 2nd type of
communication. I don't think we need to have both features in order to
start making basic use of locks.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Locking on svn.collab.net (was svn.collab.net Subversion upgraded to 1.2.0-rc1)
Posted by "C. Michael Pilato" <cm...@collab.net>.
Ben Collins-Sussman <su...@collab.net> writes:
> Yet when I read your mail, it looks much the same as cmpilato's: I
> see some sort of hatred of locks, or some perceived
> danger/annoyance, with no explanation. Can we have a rational
> debate, other than just blind voting?
Hatred of locks? Oh, please.
Perceived danger? Er. No.
Perceived annoyance? Yes. In fact, two of them.
First, we keep our repository running the most recent release so we
can eat our own dog food, yes, but that is a far cry from treating
that repository as a testbed. I don't want my (or anyone's else's)
work hindered because some well-intending developer is "testing"
locking on our live repository.
Secondly, since we're aren't going to be "testing" locking using our
repository (see above), it follows that the only type of locking in
use there will be real, I-gotta-lock-to-save-folks-from-wasting-time
locking. And I think that lock emails play a key role in preventing
people from wasting time.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Locking on svn.collab.net (was svn.collab.net Subversion
upgraded to 1.2.0-rc1)
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Tuesday, April 12, 2005 11:18 AM -0500 Ben Collins-Sussman
<su...@collab.net> wrote:
> I gave a justification in my mail: so we can experiment with our own dog
> food. That's a tangible benefit. I then proceeded to explain why
> there's no risk to leaving this door open.
Why do we even need to open the door in the first place?
> Yet when I read your mail, it looks much the same as cmpilato's: I see
> some sort of hatred of locks, or some perceived danger/annoyance, with
> no explanation. Can we have a rational debate, other than just blind
> voting?
As I said in my previous email, I'm saying that I don't think locks make
sense for this type of project. I do believe that locks have their place
in certain groups. Yet, Subversion itself just doesn't seem to me to fit
that criteria.
I worry that the introduction of locks would make it such that committers
would obtain locks on a file and then others would be hesitate to make
changes to that file because John has a lock on a file and he's being slow
on committing his changes. I think that's really bad behavior for
open-source projects: no committer should ever block anyone else from
making changes. Either the change is committed or it isn't. And, if it's
a long-term change, then you need to branch off and handle the merges. --
justin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Locking on svn.collab.net (was svn.collab.net Subversion upgraded to 1.2.0-rc1)
Posted by Ben Collins-Sussman <su...@collab.net>.
On Apr 11, 2005, at 6:55 PM, Justin Erenkrantz wrote:
> --On Friday, April 8, 2005 9:12 AM -0500 Ben Collins-Sussman
> <su...@collab.net> wrote:
>
>> I'm not sure what you're afraid of here. Yes, locking is "on" by
>> default
>> in 1.2, but it also has no teeth by default -- anyone can break/steal
>> locks.
>
> -1 (vote, not veto) on using locks on Subversion's repository.
>
> I don't like encouraging locks to begin with on this sort of project.
> I haven't seen any justifications yet as to why anyone actively
> involved in Subversion would want to hold locks on our codebase.
I gave a justification in my mail: so we can experiment with our own
dog food. That's a tangible benefit. I then proceeded to explain why
there's no risk to leaving this door open.
Yet when I read your mail, it looks much the same as cmpilato's: I see
some sort of hatred of locks, or some perceived danger/annoyance, with
no explanation. Can we have a rational debate, other than just blind
voting?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Locking on svn.collab.net (was svn.collab.net Subversion
upgraded to 1.2.0-rc1)
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Friday, April 8, 2005 9:12 AM -0500 Ben Collins-Sussman
<su...@collab.net> wrote:
> I'm not sure what you're afraid of here. Yes, locking is "on" by default
> in 1.2, but it also has no teeth by default -- anyone can break/steal
> locks.
-1 (vote, not veto) on using locks on Subversion's repository.
I don't like encouraging locks to begin with on this sort of project. I
haven't seen any justifications yet as to why anyone actively involved in
Subversion would want to hold locks on our codebase.
Feel free to create a 'test' repository if you want to 'experiment' with
locking, but that should be kept out of the main repository. -- justin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Locking on svn.collab.net (was svn.collab.net Subversion upgraded to 1.2.0-rc1)
Posted by Ben Collins-Sussman <su...@collab.net>.
On Apr 7, 2005, at 4:55 PM, C. Michael Pilato wrote:
> "C. Michael Pilato" <cm...@collab.net> writes:
>
>> May the locking begin.
>
> On second thought, I've disabled locking on the server until the
> committers vote in support of enabling it.
>
> To start the voting process, I'll register a -0.9 until mailer.py
> learns
> to send lock and unlock notifications.
>
I'm not sure what you're afraid of here. Yes, locking is "on" by
default in 1.2, but it also has no teeth by default -- anyone can
break/steal locks.
AFAICT, our own community of developers has no real need or interest in
locking at all. If any of us used it, it would be purely for
experimentation and testing. And if it turns out that a lock *was* in
the way of a commit, anyone could easily break it.
So I don't really see a "threat" to our normal processes here, only an
opportunity for testing. I don't see the need for coming up with
complex HACKING policies about it, or the need to vote to enable
something so harmless.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Locking on svn.collab.net (was svn.collab.net Subversion upgraded to 1.2.0-rc1)
Posted by "C. Michael Pilato" <cm...@collab.net>.
"C. Michael Pilato" <cm...@collab.net> writes:
> May the locking begin.
On second thought, I've disabled locking on the server until the
committers vote in support of enabling it.
To start the voting process, I'll register a -0.9 until mailer.py learns
to send lock and unlock notifications.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org