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

Re: "svn:cat" - "svnlook cat" in pre-commit hook

From: Lorenz <lorenznl_at_yahoo.com>
Date: Wed, 09 Apr 2008 06:18:29 +0000

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_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-09 08:18:57 CEST

This is an archived mail posted to the Subversion Users mailing list.