Title: [293498] trunk/Tools
Revision
293498
Author
[email protected]
Date
2022-04-26 22:40:31 -0700 (Tue, 26 Apr 2022)

Log Message

Remove adjustPathForRecentRenamings from VCSUtils.pm, they are not recent anymore
https://bugs.webkit.org/show_bug.cgi?id=239646

Patch by Kimmo Kinnunen <[email protected]> on 2022-04-26
Reviewed by Darin Adler.

These were used to adjust patches 10 years ago.
The functionality renames *_test_expectations.txt in ANGLE imports, which causes surprises
and hard to track redundant sections while inspecting downstream differences to upstream.

* Scripts/VCSUtils.pm:
(parseGitDiffHeader):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (293497 => 293498)


--- trunk/Tools/ChangeLog	2022-04-27 05:30:42 UTC (rev 293497)
+++ trunk/Tools/ChangeLog	2022-04-27 05:40:31 UTC (rev 293498)
@@ -1,3 +1,17 @@
+2022-04-26  Kimmo Kinnunen  <[email protected]>
+
+        Remove adjustPathForRecentRenamings from VCSUtils.pm, they are not recent anymore
+        https://bugs.webkit.org/show_bug.cgi?id=239646
+
+        Reviewed by Darin Adler.
+
+        These were used to adjust patches 10 years ago.
+        The functionality renames *_test_expectations.txt in ANGLE imports, which causes surprises
+        and hard to track redundant sections while inspecting downstream differences to upstream.
+
+        * Scripts/VCSUtils.pm:
+        (parseGitDiffHeader):
+
 2022-04-26  Michael Catanzaro  <[email protected]>
 
         [git-webkit] Cannot create pull request branch using bug URL, fails to fetch comments from Bugzilla, fails to modify bug

Modified: trunk/Tools/Scripts/VCSUtils.pm (293497 => 293498)


--- trunk/Tools/Scripts/VCSUtils.pm	2022-04-27 05:30:42 UTC (rev 293497)
+++ trunk/Tools/Scripts/VCSUtils.pm	2022-04-27 05:40:31 UTC (rev 293498)
@@ -593,17 +593,6 @@
     }
 }
 
-sub adjustPathForRecentRenamings($) 
-{ 
-    my ($fullPath) = @_; 
- 
-    $fullPath =~ s|WebCore/webaudio|WebCore/Modules/webaudio|g;
-    $fullPath =~ s|_javascript_Core/wtf|WTF/wtf|g;
-    $fullPath =~ s|test_expectations.txt|TestExpectations|g;
-
-    return $fullPath; 
-} 
-
 sub canonicalizePath($)
 {
     my ($file) = @_;
@@ -850,12 +839,7 @@
     if (/$gitDiffStartRegEx/) {
         # Use $POSTMATCH to preserve the end-of-line character.
         my $eol = $POSTMATCH;
-
-        # The first and second paths can differ in the case of copies
-        # and renames.  We use the second file path because it is the
-        # destination path.
-        $indexPath = adjustPathForRecentRenamings(parseGitDiffStartLine($_));
-
+        $indexPath = parseGitDiffStartLine($_);
         $_ = "Index: $indexPath$eol"; # Convert to SVN format.
     } else {
         die("Could not parse leading \"diff --git\" line: \"$line\".");
@@ -978,7 +962,7 @@
 
     my $indexPath;
     if (/$svnDiffStartRegEx/) {
-        $indexPath = adjustPathForRecentRenamings($1);
+        $indexPath = $1;
     } else {
         die("First line of SVN diff does not begin with \"Index \": \"$_\"");
     }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to