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

Re: svn copy vs svn add in pre-commit

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Wed, 13 Jun 2012 14:44:53 +0200

On Wed, Jun 13, 2012 at 2:37 PM, <Ullrich.Jans_at_elektrobit.com> wrote:
> Hi,
>
> is there any way to determine if a commit to a repository is an svn copy or a shell level copy plus an svn add? I'm trying to limit people tagging to doing an svn copy, but I can't figure out how to determine if the current transaction (running in the pre-commit hook) is a copy or an add...
>
> Any hints?

try 'svnlook changed --copy-info -t $TXN $REPOS'

The --copy-info should show things like "(from trunk/:rXXX)".

-- 
Johan
Received on 2012-06-13 14:45:48 CEST

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.