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

Re: Feature Request: Identify new "copy" entries from pre-commit hook

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-09-20 01:50:04 CEST

On Mon, 2005-09-19 at 14:49 -0400, Paul Dugas wrote:
> Hi all,
>
> I want to be able to identify new entries being added to a repository that
> are copies, rather than just straight adds, from within a pre-commit hook.
> I posted a question to this list looking for help but only got "me too"
> responses. I was about to enter it as a feature request in the issue
> tracker. Figured I'd post one more time.

svnlook changed /full/path/to/repos | grep ^C

Does the above or something like it work? Of course this only works on
the server itself, clients cannot run these commands. But since you are
talking in a hook script sense....

> I'm trying to enforce some rules on the layout of my repository. I want
> to make sure entries in /tags are copyies of /trunk. I want to make sure
> entries in /branches are copies of entries in /tags. I want to prevent
> users from using mkdir/add to create these new entries instead.

You should look for more examples of other peoples hook scripts. Mostly
the pre-commit hook scripts. I know there are some posted in the
archives of this list if you dig for them.

Cheers,
Chris

-- 
PGP Public Key: http://www.nesser.org/pgp-key/
19:46:53 up 8:57, 2 users, load average: 0.03, 0.09, 0.04

Received on Tue Sep 20 02:02:41 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.