You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by NEAU Sylvain <Sy...@cimut.fr> on 2008/04/08 07:31:31 UTC
"svn:cat" - "svnlook cat" in pre-commit hook
Hi all,
In a pre-commit hook we are trying to get the md5 digest of the PREV rev who is commited.
It seems I can't cat the PREV rev with "svn cat" nor "svnlook cat".
Is there a way to do this ?
Best regards,
Sylvain Néau
RE: "svn:cat" - "svnlook cat" in pre-commit hook
Posted by "Reedick, Andrew" <jr...@ATT.COM>.
>From: NEAU Sylvain [mailto:Sylvain.NEAU@cimut.fr]
>Sent: Tuesday, April 08, 2008 3:32 AM
>To: users@subversion.tigris.org
>Cc: CIMUT - Qualité
>Subject: "svn:cat" - "svnlook cat" in pre-commit hook
>>
>Hi all,
>
>In a pre-commit hook we are trying to get the md5
>digest of the PREV rev who is commited. It seems I
>can't cat the PREV rev with "svn cat" nor "svnlook
>cat".
>
>Is there a way to do this ?
The previous rev is the current revision (you haven't committed the new revision yet.) Just do an 'svn cat svn://.../foo.c'.
*****
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA623
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: "svn:cat" - "svnlook cat" in pre-commit hook
Posted by Lorenz <lo...@yahoo.com>.
Blair Zajac wrote:
>NEAU Sylvain wrote:
>> In a pre-commit hook we are trying to get the md5 digest of the PREV rev
>> who is commited.
>>
>> It seems I can't cat the PREV rev with "svn cat" nor "svnlook cat".
>
>The PREV keyword only works from the client with a working copy and is relative
>to the BASE URL that is currently checked out.
>
>If you use svnlook cat and want to see the current HEAD version, that will
>become the PREV to HEAD version, then you can use 'svnlook cat' with no -r or
>-t, because the transaction hasn't committed yet.
I'm not realy sure if it is that easy.
As far as I know, there might be a concurrent commit running and
finish before yours.
In that case HEAD of the repo as you saw it might be not the previous
revision after your commit is finished.
If that's relevant depends on the use case though.
--
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: "svn:cat" - "svnlook cat" in pre-commit hook
Posted by Blair Zajac <bl...@orcaware.com>.
NEAU Sylvain wrote:
> Hi all,
>
>
>
> In a pre-commit hook we are trying to get the md5 digest of the PREV rev
> who is commited.
>
> It seems I can't cat the PREV rev with "svn cat" nor "svnlook cat".
The PREV keyword only works from the client with a working copy and is relative
to the BASE URL that is currently checked out.
If you use svnlook cat and want to see the current HEAD version, that will
become the PREV to HEAD version, then you can use 'svnlook cat' with no -r or
-t, because the transaction hasn't committed yet.
Regards,
Blair
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org