[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subversion-dev
Subject:    SVNLOOK tree strictly obeying the version
From:       "John Huddleston" <jhuddleston () hughes ! net>
Date:       2008-05-31 12:59:41
Message-ID: 000901c8c31e$36f15540$6401a8c0 () JOHNIYWTKBFEG5
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

 

I was setting up a post-commit svnlog.pl perl script for a customer and they
wanted the viewvc URL of the changed files sent to them via email. During
the process of programming I noticed that the "-r" option to the "svnlook
tree" command returned some spurious data. 

 

I checked out the most recent code from your subversion server and edited
the main.c under http://svn.collab.net/repos/svn/trunk/subversion/svnlook to
print the requested revisions.

 

I apologize if it is not elegant but this was my first foray into modifying
any of this code.  In short, I needed to pass the revision from the
svnlook_ctxt_t and then compare it to the revision in the database.

 

I've attached an svn diff file with the changes.  The work was done on
Windows working under Cygwin.

 

John Huddleston 

 

 


[Attachment #5 (text/html)]

<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I was setting up a post-commit svnlog.pl perl script for a
customer and they wanted the viewvc URL of the changed files sent to them via
email. During the process of programming I noticed that the &#8220;-r&#8221;
option to the &#8220;svnlook tree&#8221; command returned some spurious data. \
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I checked out the most recent code from your subversion
server and edited the main.c under <a
href="http://svn.collab.net/repos/svn/trunk/subversion/svnlook">http://svn.collab.net/repos/svn/trunk/subversion/svnlook</a>
 to print the requested revisions.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I apologize if it is not elegant but this was my first foray
into modifying any of this code.&nbsp; In short, I needed to pass the revision
from the svnlook_ctxt_t and then compare it to the revision in the \
database.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I&#8217;ve attached an svn diff file with the changes.&nbsp;
The work was done on Windows working under Cygwin.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>John Huddleston <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>


["main.dif" (application/vnd.ms-excel)]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic