The text below needs some clearing:
Renaud Waldura wrote:
> Hello Tortoise Users,
>
> I'm writing a daily report of Subversion activity. Instead of attaching
> textual diffs, I want the report to include links that fire up a diff
> program. The report is sent by email, and the links look like (I made
> this up):
The report is sent by HTML formatted email...
> <a
> href="diff:svn://server/repos/myproject/trunk/dir/file.txt?rev1=234&rev2=235">
>
> /myproject/trunk/dir/file.txt
> </a>
>
> How can I start a program from a link inside of an email? I wrote a
> batch (.cmd) script that does what I want next: parse the URL, get the
> file from Subversion at rev1 and rev2 (using "svn cat"), start up the
> diff program to look at both.
All right, we are talking M$-only here :-) Now is the time to notice that
this came off the TSVN ML...
I wonder how much time is needed before somebody finds an effective way to
exploit your particular diff: URL handling code. And consider at least
trying to be standard (note the protocol:// syntax) in using
diff://svn:/server/...
> But I'm having a hard time bridging the gap between the link and this
> script. It seems to me I should register a protocol handler for the
> "diff" protocol, but I have no idea how to do this.
You might be able to tweak the windoze registry for Outlook. You might want
to register a protocol handler for Thunderbird (ask google about it). You
might consider writing an extension in XUL for Thunderbird that does diffs.
But why not use plain text e-mail with a http link to one of the many cgi
scripts that does very good colorful diff? Then you could simply write:
See the diff of file.txt at
http://server/repos/myproject/trunk/dir/file.txt?rev1=234&rev2=235
and even dumb clients like outlook express will show you that as a link that
you can click.
You can put a generic diff script on a server and supply both the url of an
external file to fetch (svn+ssh, https, etc) and the two revisions as
arguments to that script.
Kalin.
--
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sun Jan 22 12:44:42 2006