<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>19963</bug_id>
          
          <creation_ts>2008-07-09 11:17:17 -0700</creation_ts>
          <short_desc>&quot;$OpenBSD$&quot; markers display in PrettyPatch, but not built-in &quot;diff&quot;</short_desc>
          <delta_ts>2011-03-15 10:51:11 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>525.x (Safari 3.1)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>29317</dup_id>
          
          <bug_file_loc>https://bugs.webkit.org/attachment.cgi?id=22185&amp;action=prettypatch</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aroben</cc>
    
    <cc>cmarcelo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85550</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-07-09 11:17:17 -0700</bug_when>
    <thetext>* SUMMARY
An OpenBSD patch on Bug 19775 uses &quot;$OpenBSD$&quot; as a marker between file diffs.  The built-in &quot;diff&quot; format on bugs.webkit.org does not display these lines:

https://bugs.webkit.org/attachment.cgi?id=22185&amp;action=diff

However, PrettyPatch does display them (after skipping the first) at the end of each diff:

https://bugs.webkit.org/attachment.cgi?id=22185&amp;action=prettypatch

I think counting the number of actual/expected lines in the patch while parsing out individual diffs may fix the issue.  (Would be interesting to look at how the &quot;diff&quot; format does its parsing, too.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85668</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-07-10 15:07:54 -0700</bug_when>
    <thetext>Another example:

https://bugs.webkit.org/attachment.cgi?id=22203&amp;action=prettypatch

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364264</commentid>
    <comment_count>2</comment_count>
    <who name="Caio Marcelo de Oliveira Filho">cmarcelo</who>
    <bug_when>2011-03-08 17:50:26 -0800</bug_when>
    <thetext>David Kilzer, I think my patch for bug 29317 will solve this problem as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365787</commentid>
    <comment_count>3</comment_count>
    <who name="Caio Marcelo de Oliveira Filho">cmarcelo</who>
    <bug_when>2011-03-10 20:17:32 -0800</bug_when>
    <thetext>This is fixed now. I&apos;m marking as duplicate of bug 29317 because it is fundamentally the same problem: displaying lines that are not part of the actual diff contents.

*** This bug has been marked as a duplicate of bug 29317 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367770</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2011-03-15 10:51:11 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; David Kilzer, I think my patch for bug 29317 will solve this problem as well.

Looks good.  Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>