[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: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Mon, 7 Jul 2008 04:52:31 -0500

On Jul 7, 2008, at 03:05, HAcland wrote:

> 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.

Did you install Subversion, available from http://
subversion.tigris.org/ ? It provides the svn and svnadmin command
line programs, among other things.

> 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 you want to know what files were affected by the revision, you
would call "svnlook changed" and pass it the repository location and
the revision.

Now... Why do you want to copy files manually? Perhaps there's a
better way to accomplish your goal. Perhaps you can simply "svn
update" a working copy on your server after every commit. Then you
don't have to worry about what changed, and instead you let
Subversion handle it for you. Or if that doesn't suit you, maybe you
can explain your use case and we can help find a good solution.

---------------------------------------------------------------------
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 11:52:59 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.