I have a possible idea for how we could do this, I think I suggested
something like this several months ago.
1) A property would be added that specifies the name or an identifier of
a program to call. The program either has to write the SELECTED bug ID's
back to stdout or to a temp file that is passed as an input parm. TSVN
would only support one or the other (whatever is best for you). I would
suggest a temp file only because in some programming languages writing to
stdout is not as easy as others.
2) The program would have to exist in a special subdirectory under
C:\Program Files\TortoiseSVN. This is just a small security layer.
Another option would be that there would be a new page in the settings
dialog where the user had to "register" the program before Tortoise would
allow it to run. Perhaps the settings contains an "identifier" and the
path to the program and the property contains just the "identifier". Such
as "Bugzilla" or "FogBugz"? That way the program can live in different
locations and the user has to do something to enable the program to run.
Again, just a small security idea.
3) TSVN would supply a default program that will read and parse a URL and
present choices in a selection dialog. Of course selections would be
written to stdout or temp file like any other program. TSVN would either
support no authentication or just whatever you could reasonably easily.
Again, up to you.
4) It would be up to bug tracking tools to provide their own client
program for their tool if the TSVN default program could not work for
them. Perhaps they just need to prompt for a username and then call the
TSVN program? Or maybe they do not use http:// etc....
5) If the above property were set, a button would be added to the UI to
select issues. This would trigger calling the program.
I think the benefits to this approach are that it puts a framework in
place where TSVN can provide a solution for many users, and for the rest,
the bug tracking provider can provide something to provide the solution.
It also allows TSVN to not directly try to solve issues like
authentication etc.. and only provide a solution for the users that do not
have that problem.
Mark
_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Feb 21 21:01:51 2005