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

Re: [contrib] Hook script for svn:keywords and binary files

From: Larry Shatzer, Jr. <larrys_at_gmail.com>
Date: Thu, 15 May 2008 10:02:54 -0600

On Thu, May 15, 2008 at 9:52 AM, Karl Fogel <kfogel_at_red-bean.com> wrote:

> "Larry Shatzer, Jr." <larrys_at_gmail.com> writes:
> > I have a hook script that will either disallow all svn:keywords from
> > being set on binary files, or allow them if they are using the fixed
> > width version of the keyword.
> >
> > The approach I am using to determine if it is binary is everything is
> > binary by default. The way it determines if a file is non binary
> > (text), is if it has svn:eol-style set, then it is text. If it has
> > svn:mime-type of text/*, then it is text. I also have a command line
> > flag you can set multiple times to add extensions to always consider
> > as text (.txt, .java, .c, etc.) There is no default for that list.
> >
> > I figure this might be useful to others, so I am attaching the script
> > for consideration to be added to the contrib/hook-scripts directory.
>
> Looks good to me. Do you mind if I change it to "svn-keyword-check.pl",
> to avoid wordsmash?
>

Renaming it is fine.

>
> If you'd like to maintain it in contrib/hook-scripts/ from now on, just
> see
>
>
> https://svn.collab.net/repos/svn/trunk/notes/commit-access-templates/contrib-committer.tmpl
>
> ...for what I would say next, and take the appropriate steps :-).
>
>
Will do.

-- Larry
Received on 2008-05-15 18:03:17 CEST

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

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