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

Re: warn about misspelled props?

From: <kfogel_at_collab.net>
Date: 2005-04-28 20:40:51 CEST

Tobias Ringström <tobias@ringstrom.mine.nu> writes:
> > In my short history with svn, I have seen: svn:ingore, svn:external,
> > svn:eolstyle... things like that.
>
> This sounds like the perfect job for a pre-commit hook script. There's
> some sample code in tools/hook-scripts if you'd like to write one
> yourself. If you do, we'd be happy to add it to tools/hook-scripts. It
> would be a nice addition.

Ideally, this would be caught by our client libraries. After all,
Subversion owns the "svn:*" space. We can disallow properties as well
as allow them, and catching obvious errors as early as possible is
always nice.

The problem is coming up with a statistically useful set of
misspellings. Obviously, we can't just prohibit any "svn:" property
we don't know about, because then older clients wouldn't work with
future properties that haven't been invented yet. So if we disallow
any properties, we must disallow a well-defined, documented set.

Given the difficulty of predicting misspellings, I'm not sure it's
worth the trouble. (Although on the other hand, Google did purchase
"goolge.com", for example.)

In the meantime, as Tobias points out, anyone is free to solve this as
they wish in a pre-commit hook. That's a good workaround.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 28 21:35:21 2005

This is an archived mail posted to the Subversion Dev mailing list.