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

RE: Noob question on pre-commit windows script

From: Tom Blough <tom.blough_at_truetemper.com>
Date: Fri, 8 Feb 2008 10:39:40 +0800

> Stefan Küng wrote:
>
> As of revision 12062, the CWD is set if there's only one path
> affected for the script.

By one path affected, do you mean only one working path? What if my project
has subdirectories and I have files being committed that are located in
multiple subdirectories? What if none of the committed files is in the root
of the working copy; how is the CWD set in that case? Instead of trying to
work with something that MIGHT be set, I think it would be easier to handle
something more explicit.

Could we have %WCP% or the like that points to a file that lists all the
affected working copy paths (but only the top level WCPs) much like the
current %PATH% which points to a file that lists all affected files?

As an aside to save others some trouble, %PATH% is case sensitive. If you
use %path%, you get a copy of the system path expanded as one entry per
command line parameter, not the file pointer you were expecting!

>
> Maybe specifying the path as '*' or leaving it empty could force the
> hook script to run for all paths?
>
> If nobody objects to this, I'll implement that tomorrow...

I have never seen a open source project with such active developers.
Stefan, let me know if you'd like some Amazon gift certificates to help with
your music addiction, or if you'd rather I paypal the project. Glad I
discovered this project - it's nice to be able to reward those who made it
happen.

Cheers,

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-02-08 03:38:39 CET

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