[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 file for updates

From: Steffan Haeberle <steffan_at_MojoInteractive.com>
Date: 2005-12-14 20:47:17 CET

Stefan,
        Yes, that worked. The issue was with my limited expertise of batch files. I realized that a subfolder in the path to be updated had a space and the batch was skipping it. Once I placed quotation marks around the path, it worked.
        One last question, is there a subversion variable for windows that represents the name of the script that is being committed? I would very much like to update only the script being committed that resides on our dev working copy, instead of the entire directory after each commit. Thanks again.

Steffan

-----Original Message-----
From: Stefan Küng [mailto:tortoisesvn@gmail.com]
Sent: Wednesday, December 14, 2005 11:52 AM
To: users@tortoisesvn.tigris.org
Cc: Steffan Haeberle
Subject: Re: post-commit bat file for updates

Steffan Haeberle wrote:

> I cannot find an example of how to update a working copy using svn
> update after each commit. We have 4 programmers all working from the
> same networked share and we each have to update our changes separately
> to a dev copy of our site. Since we are on windows, I cant find an
> example of how to force the updates to the dev directory using
> post-commit.bat. Any help would be appreciated. Thanks.

You don't tell us what your problem is. What's the content of your
post-commit.bat file now? Do you get any errors after a commit?

Copy this into your post-commit.bat: it works for me, so you can use it
as a starting point.

----
echo commit happened. So update the dev directory
svn update d:\test2\hooktestupdate > d:\test2\log.txt
pause
exit 0
----
Stefan
-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
--
Received on Wed Dec 14 20:02:32 2005

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