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

Re: Feature Request: Option to *always* commit all the changes in the *entire* working copy.

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Fri, 7 Aug 2009 11:44:53 +0100

2009/8/6 David Walthall <walthall_at_stanfordalumni.org>:
> Nick Sabalausky wrote:
>> Currently, if you do a commit from a subdirectory within the working
>> copy, only the changes within that subdirectory are selected for the
>> commit.
> Perhaps adding the following as a Start Commit Hook script would be helpful:
> cmd /C tortoiseproc /command:commit /path:"path\to\root\of\wc" && exit 1
> Add it to every subdirectory of the working copy (but not the root of
> the working copy).  Make sure that "Wait for the script to finish" is
> checked.

Using hooks is a good idea, but not like that - you have set up an
infinite commit loop as each commit calls the start-commit-hook which
then starts another commit which calls ...

But it is even easier than you suggest because the working directory
is passed as a parameter so you can simply set up a start-commit-hook
script like this:

@echo off
if %3 == "C:\Working\Copy\Root" exit 0
echo Commit started from %3 >&2
exit 1

The same hook script will be used when started from a child path, so
you don't have to set up a script for each of the subdirectories.


:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-08-07 12:45:07 CEST

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.