Title: [94555] trunk/Websites/bugs.webkit.org
Revision
94555
Author
[email protected]
Date
2011-09-06 00:49:02 -0700 (Tue, 06 Sep 2011)

Log Message

Unreviewed, rolling out r94554.
http://trac.webkit.org/changeset/94554
https://bugs.webkit.org/show_bug.cgi?id=67631

This patch did not quite fix the problem (Requested by
benwells on #webkit).

Patch by Sheriff Bot <[email protected]> on 2011-09-06

* PrettyPatch/PrettyPatch.rb:
* PrettyPatch/PrettyPatch_test.rb:

Modified Paths

Diff

Modified: trunk/Websites/bugs.webkit.org/ChangeLog (94554 => 94555)


--- trunk/Websites/bugs.webkit.org/ChangeLog	2011-09-06 07:26:13 UTC (rev 94554)
+++ trunk/Websites/bugs.webkit.org/ChangeLog	2011-09-06 07:49:02 UTC (rev 94555)
@@ -1,3 +1,15 @@
+2011-09-06  Sheriff Bot  <[email protected]>
+
+        Unreviewed, rolling out r94554.
+        http://trac.webkit.org/changeset/94554
+        https://bugs.webkit.org/show_bug.cgi?id=67631
+
+        This patch did not quite fix the problem (Requested by
+        benwells on #webkit).
+
+        * PrettyPatch/PrettyPatch.rb:
+        * PrettyPatch/PrettyPatch_test.rb:
+
 2011-09-06  Ben Wells  <[email protected]>
 
         PrettyPatch should handle "delta" patch mechanism in git binary patches

Modified: trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb (94554 => 94555)


--- trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb	2011-09-06 07:26:13 UTC (rev 94554)
+++ trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb	2011-09-06 07:49:02 UTC (rev 94555)
@@ -13,7 +13,7 @@
 
     def self.prettify(string)
         $last_prettify_file_count = -1
-        $last_prettify_part_count = { "remove" => 0, "add" => 0, "shared" => 0, "binary" => 0 }
+        $last_prettify_part_count = { "remove" => 0, "add" => 0, "shared" => 0 }
         string = normalize_line_ending(string)
         fileDiffs = FileDiff.parse(string)
 
@@ -65,7 +65,7 @@
 
     GIT_BINARY_FILE_MARKER_FORMAT = /^GIT binary patch$/
 
-    GIT_BINARY_PATCH_FORMAT = /^(literal|delta) \d+$/
+    GIT_LITERAL_FORMAT = /^literal \d+$/
 
     START_OF_BINARY_DATA_FORMAT = /^[0-9a-zA-Z\+\/=]{20,}/ # Assume 20 chars without a space is base64 binary data.
 
@@ -508,7 +508,7 @@
                     @git_indexes = [$1, $2]
                 when GIT_BINARY_FILE_MARKER_FORMAT
                     @binary = true
-                    if (GIT_BINARY_PATCH_FORMAT.match(lines[i + 1]) and PrettyPatch.has_image_suffix(@filename)) then
+                    if (GIT_LITERAL_FORMAT.match(lines[i + 1]) and PrettyPatch.has_image_suffix(@filename)) then
                         @git_image = true
                         startOfSections = i + 1
                     end
@@ -585,7 +585,6 @@
                     end
                 end
             elsif @binary then
-                $last_prettify_part_count["binary"] += 1
                 str += "<span class='text'>Binary file, nothing to see here</span>"
             else
                 str += @sections.collect{ |section| section.to_html }.join("<br>\n") unless @sections.nil?

Modified: trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch_test.rb (94554 => 94555)


--- trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch_test.rb	2011-09-06 07:26:13 UTC (rev 94554)
+++ trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch_test.rb	2011-09-06 07:49:02 UTC (rev 94555)
@@ -26,7 +26,6 @@
         80852 => ["Changes one line plus ChangeLog", 2, 2, 1, 4],
         83127 => ["Only add stuff", 2, 2, 0, 3],
         85071 => ["Adds and removes from a file plus git signature", 2, 5, 3, 9],
-        104633 => ["Delta mechanism for binary patch in git diff", 12, 3, 5, 3],
     }
 
     def get_patch_uri(id)
@@ -58,7 +57,6 @@
         assert_equal(info[Info::ADD], $last_prettify_part_count["add"], "Wrong number of 'add' parts in " + description)
         assert_equal(info[Info::REMOVE], $last_prettify_part_count["remove"], "Wrong number of 'remove' parts in " + description)
         assert_equal(info[Info::SHARED], $last_prettify_part_count["shared"], "Wrong number of 'shared' parts in " + description)
-        assert_equal(0, $last_prettify_part_count["binary"], "Wrong number of 'binary' parts in " + description)
     end
 
     def test_patches
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to