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

RE: Auto-prop not working?

From: Weintraub, David <David.Weintraub_at_ilex.com>
Date: 2005-04-22 19:19:17 CEST

From: Ben Collins-Sussman
> On Apr 22, 2005, at 11:11 AM, Weintraub, David wrote:
>
>> Actually, even if you specify all possible text file patterns, you
>> still have a problem. What if a user does their work on a system where
>> you didn't setup the autoproperty for them?
>>
>> This points to several missing features with Subversion:
>>
>> 1). No server side configuration. You have to basically set up this
>> configuration on all client machines. What if the user overrides this
>> configuration? What if the user decides to do work from home on his
>> personal computer where you did not setup this client configuration?
>> What happens when a machine gets replaced?
>
> This is planned for 1.3. It's a hot item.

Yea!

>> 2). Limited power of the svnserve and svnlook commands. Hooks can be
>> used to enforce policy, so maybe you'll program a post-commit hook
>> that examines a file that gets committed, and automatically sets the
>> svn:keyword property if it isn't already set. Oops, the propset and
>> propget commands don't work without first creating a working directory
>> and checking out that file in that working directory. A hook doesn't
>> work.
>>
>
> You've got it backwards. You should be using a *pre*-commit hook to
> reject any commit which doesn't have properties set correctly. It can
> send a nice message back to the use explaining why the commit was
> rejected.

Yes, I can reject the commmit, but it makes me feel like I'm working for the
DMV. Instead of simply being able to reject, I'd like fix the problem.

After all, I'm so close... After rejecting the commit, I can send the
developer the actual command to use and tell them to cut and paste it into
their command line. I just can't run the command myself.
Received on Fri Apr 22 19:18:38 2005

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.