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

Re: Enforce File Name with Naming Convention

From: michael mac <michaelhmac_at_gmail.com>
Date: Fri, 2 Dec 2011 17:01:37 -0800

Hi,

I found the solution in svnperm.py. Adding the following in the
configuration file allowed me to restrict file name convention to single
digit dot single digit. i.e 1.1, 1.2, 1.3

[repoA]

path/to/my/folder/.+ = @mygroup ()
path/to/my/folder/\d\.\d\/ = @mygroup(add)

Michael

On Thu, Nov 3, 2011 at 5:48 PM, michael mac <michaelhmac_at_gmail.com> wrote:

> Hi,
>
> I've searched through the archives and wasn't able to find an answer so
> I'm posting in hope that someone can help. There's a requirement to enforce
> file naming convention under particular svn paths. The convention name will
> be "numeric dot number" (1.1). I have looked into svnperm.py and
> commit-access-control.pl as a pre-commit hook option, but they don't seem
> to have the ability to fill this requirement.
>
> Requirement: There are multiple projects under repo A and each project has
> it's own submissions folder (/repoA/project1/submissions). I want to be
> able to enforce a naming convention in the pre-commit hook to only allow
> folders with the name of "numeric dot numeric" under the submission folder
> (/repoA/project1/submissions/1.1). No other naming convention is allowed.
> And out of many projects, I only need this for a few projects at the
> moment, but this may change. But I won't be applying this to all projects
> under repo A, only a selective few.
>
> Thanks in advance,
>
> Michael
>
Received on 2011-12-03 02:02:14 CET

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.