You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ul...@elektrobit.com on 2012/06/13 14:37:27 UTC
svn copy vs svn add in pre-commit
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
--
Ullrich Jans, Specialist, IT-A
Phone: +49 9131 7701-6627, mailto:ullrich.jans@elektrobit.com
Fax: +49 9131 7701-6333, www.elektrobit.com
Elektrobit Automotive GmbH, Am Wolfsmantel 46, 91058 Erlangen, Germany
Managing Directors: Alexander Kocher, Gregor Zink
Register Court Fürth HRB 4886
----------------------------------------------------------------
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
Posted by Ul...@elektrobit.com.
Hi,
> -----Original Message-----
> From: Johan Corveleyn [mailto:jcorvel@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
Posted by Johan Corveleyn <jc...@gmail.com>.
On Wed, Jun 13, 2012 at 2:37 PM, <Ul...@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
Posted by Stefan Sperling <st...@elego.de>.
On Wed, Jun 13, 2012 at 12:37:27PM +0000, Ullrich.Jans@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
Posted by Ul...@elektrobit.com.
Hi,
> -----Original Message-----
> From: Nico Kadel-Garcia [mailto:nkadel@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
Posted by Nico Kadel-Garcia <nk...@gmail.com>.
Sent from my iPhone
On Jun 13, 2012, at 14:37, <Ul...@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?