[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2005-12-14 20:56:09 CET

Steffan Haeberle wrote:
> 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.

I don't quite see why you just want to update the script which got
committed - if you do that on every commit, the working copy will be
up-to-date all the time (*all* scripts). And you know that Subversion
only transfers the difference on an update: scripts which didn't change
won't cause any network traffic.

There is a way, but it is a little more work:
The first param which is passed to the hook script is the path to the
repository, the second param is the new revision.
So, you can use 'svnlook' to get the list of changed files and then just
update those.

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:34 2005

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

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