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

Re: post-commit.bat to create copy of commited file

From: HAcland <hughacland_at_googlemail.com>
Date: Mon, 7 Jul 2008 03:38:24 -0700 (PDT)

Thanks Ryan,

I sort of worked out that I should be using 'svn update'. I have written the
following post-commit.bat file:

D:
cd D:[my file path]\workingCopy\
PATH C:\Program Files\subversion\svn-win32-1.4.6\bin\;
mkdir demoDirToShowItIsBeingRunOK
svn update

This post-commit.bat file runs fine from the command line: it performs the
svn update on the required working copy. However, when I perform a commit
from a remote PC (using Tortoise) the post-commit hook runs fine (because I
can now see a newly created directory 'demoDirToShowItIsBeingRunOK') but the
crucial 'svn update' command is not being run. I am thinking this is to do
with permissions but am a loss to explain it...

any ideas?
thanks for you help,
Hugh

HAcland wrote:
>
> Hi,
>
> I need subversion to automatically create a copy of the file which was
> commited in a new location on the server file system. I am aware that I
> should be using the post-commit.bat hook (Server on Win 2003) but I am
> unable to find the correct SVN or SVNADMIN utility to use. Moreover I do
> not know how I would use the two parameters which post-commit.bat has
> access to, namely: REPOS="$1" and REV="$2"
>
> If someone could shed some light on this I would be most grateful.
> Thanks in advanced
> Hugh
>
>

-- 
View this message in context: http://www.nabble.com/post-commit.bat-to-create-copy-of-commited-file-tp18311887p18313926.html
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-07 12:38:43 CEST

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.