[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: Lorenz <lorenznl_at_yahoo.com>
Date: Thu, 13 Mar 2008 07:30:54 +0000

Hellen wrote:
>Actually I want to get the current directory path from "svn info " while
>using "svn commit". so I can write a script for auto switch (svn switch
>--relocate from_URL To_URL) from the mirror side to master side.

There is no way to get any informations about the working copy within
a hook script. Not even if working copy and repository are on the same
computer and you are using the file://... protocol.

The data transfered to the repositiory do not contain any information
about the physical location of the commit.

Have you thought about a wrapper script around svn to do the
switching?

-- 
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-03-13 08:31:58 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.