RE: svn copy vs svn add in pre-commit

2012-06-14 Thread Ullrich.Jans
Hi,

 -Original Message-
 From: Nico Kadel-Garcia [mailto:nka...@gmail.com]

 Why do you want to do this? To assure that tags have been part of a QA
 release process?

No - for that, we don't need to check if it's a copy. We mostly want to avoid 
the case with someone copying in the shell, then adding the stuff in a tag (or 
branch) - if you have a several GB trunk, this adds up pretty quickly...

Cheers,

Ulli



Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.



Re: svn copy vs svn add in pre-commit

2012-06-13 Thread Johan Corveleyn
On Wed, Jun 13, 2012 at 2:37 PM,  ullrich.j...@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


Re: svn copy vs svn add in pre-commit

2012-06-13 Thread Stefan Sperling
On Wed, Jun 13, 2012 at 12:37:27PM +, ullrich.j...@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?
 
 Cheers,
 
 Ulli

Try 'svnlook changed --copy-info'.


RE: svn copy vs svn add in pre-commit

2012-06-13 Thread Ullrich.Jans
Hi,

 -Original Message-
 From: Johan Corveleyn [mailto:jcor...@gmail.com]

 try 'svnlook changed --copy-info -t $TXN $REPOS'
 
 The --copy-info should show things like (from trunk/:rXXX).

That's exactly what I was looking for. :-)

How could I have overlooked this!? 

Many thanks, I'll go and feel stupid now.

Cheers,

Ulli



Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.



Re: svn copy vs svn add in pre-commit

2012-06-13 Thread Nico Kadel-Garcia


Sent from my iPhone

On Jun 13, 2012, at 14:37, ullrich.j...@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?
 

Why do you want to do this? To assure that tags have been part of a QA release 
process?