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

Re: svn info doesn't work in pre-commit script

From: Hellen <hellenff_at_gmail.com>
Date: Wed, 12 Mar 2008 01:15:33 -0700

Thanks for your help. But I have also tried using "svn info" without the
".", but It still doesn't work.

I changed the following in the start-commit:
--------------------------------

echo `pwd` >&2
svnurl=`/usr/bin/svn info |grep "^URL: "`
echo "svnurl:$svnurl" >&2
---------------------------------

and here is the result:
--------------------------------
/home/svn_user
svn: '.' is not a working copy
svnurl:
--------------------------------

but I run "svn commit" at:
/home/svn_user/tstchout/svn_mirror/testrepo1/trunk/Scripts.test

somehow, It just cannot recognize the location of the current directory.
does anyone have any idea on this ?

BTW: I tried those 2 arguments in pre-commit, it just gives me the
transaction number and the repository path not my current location.

thanks in advance.
Hellen

On Tue, Mar 11, 2008 at 11:31 PM, Hilco Wijbenga <hilco.wijbenga_at_gmail.com>
wrote:

> On Tue, Mar 11, 2008 at 11:19 PM, Hellen <hellenff_at_gmail.com> wrote:
> > svn: warning: '.' is not a working copy
>
> I don't think "svn info" is the problem, it's the ".". Your current
> directory is presumably the directory of the pre-commit script. I
> doubt that's what you meant.
>
> The pre-commit script gets 2 arguments, try using those.
>
> Cheers,
> Hilco
>
Received on 2008-03-12 09:15:56 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.