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

Re: Request for more hooks

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 12 Mar 2009 22:18:17 +0100

Andrew Simpson wrote:
>> TSVN already has a facility for setting a log template.
>> tsvn:logtemplate
>> http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/ch05s15.html
> Good point, well made. However, this only works when actions are performed
> on a working copy. If an action is performed from the repo-browser, the
> template will not be read from the properties.
> I believe TortoiseSVN doesn't read the properties when actions are done via
> the repo-browser because of performance reasons - I can't remember where I
> read it, but it makes sense. Hence there's a need for a local hook that
> can generate the appropriate template based on the URL the action is
> performed on.

the local hook scripts all work on local paths, not urls. For url based
hooks, I really would recommend repository hook scripts.

TSVN does use the properties in the repository browser, but only if the
repo browser is started from a working copy and not by entering an url
or from a webpage.

>>> The enforcement can be done easily enough at the server, but we would
>>> like TortoiseSVN to generate the template for us. <snip>
>> The enforcement must be done at the server, because you can't be
>> guaranteed that every user will be using TSVN. Even if they are using
>> TSVN, they could edit the template and violate your standard.
> I agree - that's why I said it :)
> We only want TSVN to *generate* the log template, not enforce it. It would
> serve as a reminder to the users that they need to enter the information
> asked for in the template. Yes, they could delete it or tamper with it,
> but for certain operations (commits to the trunk or release branches,
> creating tags and branches, etc.), the server would reject the commit.
> And, yes, we do have one team member who does not use TSVN, for reasons
> that I won't go into :( But when we enforce the log templates, he'll have
> to have some way of generating the same template, else all of his commits
> will fail...

the CLI also has the means of log message templates. Check the svn book
to find out how.


  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-03-12 22:18:39 CET

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.