On Jan 21, 2008 1:48 AM, Roger Lipscombe <roger_at_differentpla.net> wrote:
> Alexander Klenin wrote:
> > That is the point. The hook would display issue list from the tracker,
> > and compose an appropriate message based on selected issues.
> > The message then gets shown in commit dialog.
> > This is almost what OP wanted, except issue selection will come
> > before commit dialog, not after it.
> Good idea, but I think I see a snag: I generally only compose my comment
> once I've seen the list of changed files in the commit dialog. I suspect
> that a lot of others do the same. This means that I'd like to see the
> list of issues next to the list of files.
First, the hook already takes %PATH% argument containing a list of paths to
be committed, so it is possible for the hook to display them along
with issues list.
Second, my thought was not to let the user enter his message in a dialog
displayed by the hook, but to let the hook pre-compose some message part
or template based on the selected issues.
After that, the user would see this template in standard commit dialog and
change/augment it as usual.
> On the other hand, your point about avoiding using COM is well-taken.
> TortoiseProc itself gets given the paths to some temporary files. I'm
> coming around to have this implemented in this way. I'll need to see how
> the start-commit client-side hook is "registered". If it makes sense to
> use something for the issue tracker integration hook, then that'll be
> less confusing from the user's point of view when they have to install
> it. It also makes it much simpler to implement the hook in alternate
> languages (i.e. a simple command-line program opens us to VBScript or
> even batch files).
See TortoiseSVN -> Settings -> Hook Scripts and accompanying help.
And I wholeheartedly agree that command-line interface is easier than COM ;-)
Alexander S. Klenin
Insight Experts Ltd.
To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-01-20 17:51:59 CET