« Return to Thread: svn copy vs svn add in pre-commit

Re: svn copy vs svn add in pre-commit

by Johan Corveleyn-3 :: Rate this Message:

| View in Thread

On Wed, Jun 13, 2012 at 2:37 PM,  <Ullrich.Jans@...> 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

 « Return to Thread: svn copy vs svn add in pre-commit