<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/98313</link>
    <title>MATLAB Central Newsreader - [File Comparison Report][File Difference] output</title>
    <description>Feed for thread: [File Comparison Report][File Difference] output</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 19 Jun 2005 19:58:33 -0400</pubDate>
      <title>[File Comparison Report][File Difference] output</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/98313#249423</link>
      <author>Michael Robbins</author>
      <description>I'd like to do a little work with the output of a file comparison&lt;br&gt;
program. MATLAB's version is called &quot;File Comparison Report&quot; and it&lt;br&gt;
makes something labeled &quot;File Difference.&quot;&lt;br&gt;
&lt;br&gt;
An aside here, TMW should call them both the same name.&lt;br&gt;
&lt;br&gt;
Anyway... I want to take the data and do some automated parsing on&lt;br&gt;
it. I'd like a list of changed lines, words, etc. Ideally, a&lt;br&gt;
structure like the one PROFILE makes would be great!&lt;br&gt;
&lt;br&gt;
If I could get output from a differencing program, like File&lt;br&gt;
Comparison Report, I could use it. I guess I could parse the &quot;File&lt;br&gt;
Difference&quot; screen since it has pretty convenient output. The line&lt;br&gt;
numbers are there and the columns have '&amp;lt;', '&amp;gt;', '.' and 'x' to&lt;br&gt;
identify the comparison--which is all I really need to identify the&lt;br&gt;
lines in question. Unfortunately, the lines are truncated which means&lt;br&gt;
I'd have to go to the original files and look up the actual text.&lt;br&gt;
&lt;br&gt;
It's doable and I will do it if I don't find an easier, better, or&lt;br&gt;
already-done solution.&lt;br&gt;
&lt;br&gt;
Any ideas are welcome.&lt;br&gt;
&lt;br&gt;
TIA</description>
    </item>
    <item>
      <pubDate>Mon, 20 Jun 2005 09:17:55 -0400</pubDate>
      <title>Re: [File Comparison Report][File Difference] output</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/98313#249489</link>
      <author>quo</author>
      <description>Michael Robbins wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I'd like to do a little work with the output of a file comparison&lt;br&gt;
&amp;gt; program. MATLAB's version is called &quot;File Comparison Report&quot; and&lt;br&gt;
&amp;gt; it&lt;br&gt;
&amp;gt; makes something labeled &quot;File Difference.&quot;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; An aside here, TMW should call them both the same name.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Anyway... I want to take the data and do some automated parsing on&lt;br&gt;
&amp;gt; it. I'd like a list of changed lines, words, etc. Ideally, a&lt;br&gt;
&amp;gt; structure like the one PROFILE makes would be great!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If I could get output from a differencing program, like File&lt;br&gt;
&amp;gt; Comparison Report, I could use it. I guess I could parse the &quot;File&lt;br&gt;
&amp;gt; Difference&quot; screen since it has pretty convenient output. The line&lt;br&gt;
&amp;gt; numbers are there and the columns have '&amp;lt;', '&amp;gt;', '.' and 'x'&lt;br&gt;
&amp;gt; to&lt;br&gt;
&amp;gt; identify the comparison--which is all I really need to identify the&lt;br&gt;
&amp;gt; lines in question. Unfortunately, the lines are truncated which&lt;br&gt;
&amp;gt; means&lt;br&gt;
&amp;gt; I'd have to go to the original files and look up the actual text.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It's doable and I will do it if I don't find an easier, better, or&lt;br&gt;
&amp;gt; already-done solution.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Any ideas are welcome.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; TIA&lt;br&gt;
&lt;br&gt;
I started with visdiff.m, which is the mfile that controls the file&lt;br&gt;
differences stuff in matlab. This is really nothing more than an html&lt;br&gt;
constructor. (So I use this instead of trying to undo the actual&lt;br&gt;
html... full lines of code are stil preserved here...) But it does&lt;br&gt;
handle the output from diffcode.m, which does the actual comparison&lt;br&gt;
of the 2 files provided. (Incidentally, visdiff also prepends a blank&lt;br&gt;
line to the output of diffcode. This is the key to getting a correct&lt;br&gt;
comparison.)&lt;br&gt;
&lt;br&gt;
I'm working on something similar. I had some concern about others&lt;br&gt;
editing my mfiles (tired of looking through thousands of lines of&lt;br&gt;
code for something wrong). I looked into source control software, but&lt;br&gt;
decided that I wanted something that the users wouldn't have to&lt;br&gt;
interact with on any level. (Because my users would view that as a&lt;br&gt;
hassle...) So I decided the easiest route to take would be to&lt;br&gt;
overload the edit.m function, and am now generating reports on what&lt;br&gt;
has changed over time. (The end goal is to use the report to&lt;br&gt;
automatically &quot;undo&quot; any changes made - back to the original file.)&lt;br&gt;
&lt;br&gt;
I'm not quite done with the project yet; but it sounds like you would&lt;br&gt;
like something similar to what I've done. I'd be happy to share what&lt;br&gt;
I have thus far if you're interested...&lt;br&gt;
&lt;br&gt;
hth&lt;br&gt;
-quo</description>
    </item>
  </channel>
</rss>

