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

Re: [TSVN] Trac/bugtraq - Ticket to Changeset link

From: SteveKing <steveking_at_gmx.ch>
Date: 2004-10-27 17:39:02 CEST

Mark Phippard wrote:

> I was re-reading some notes I had written down in the past, and here is
> another idea I had.
>
> Implement this feature using something like client-side hooks. Perhaps,
> to configure this, you set a property that defines a command-line option
> to execute, this would allow custom parms to be passed to the program by
> setting those parms in the property. Perhaps TSVN would always pass a
> filename as the first parm, and it would be up to the program to populate
> that file?

Client-side hooks are on my todo list. But that will take some time to do.

But such hooks would only return TRUE or FALSE, not interfere with in
some way with an operation. Either allow or deny the operation and
return an error when denied.
TSVN would only pass the path to the working copy (or in case of
multiple targets a list of paths) and the hook program would then have
to do the checking itself.

> Anyway, to meet some of your other requirements, TSVN could simply come
> with a program that provides a default implementation. In other words, a
> program that hits a URL and populates the file. This would provide an out
> of the box solution for most situations, but still provide flexibility.
> Not all bug tracking tools use HTTP, and this would allow those tools to
> still integrate with this feature.

I think it's easier for a tool to implement http than to ask all
Subversion clients to implement SOAP or worse each proprietary protocol
for each bugtracking system out there.

> As an example, the property someone might set when using the default
> program might look like this:
>
> bugtraq:listprovider = TortoiseBugTraq.exe %BUG_LIST%
> "http://bugsystem/getbugs.cgi"
>
> %BUG_LIST% would be a temp file that TSVN asks the program to write the
> results to. You could probably define a custom-formatted file, presumably
> XML, that the provider would have to create. When hitting the URL, it
> would be expected that the contents of that file would just be returned to
> your program to write.

If you drop the XML format, we can talk about this. Don't forget that
C++ doesn't come with an XML library.
(yes, I know there are such libs available, even for free. But
increasing the size of the TSVN installer just for this?)

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Oct 27 18:47:46 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.