Title: [264002] trunk/Tools
Revision
264002
Author
[email protected]
Date
2020-07-06 17:46:03 -0700 (Mon, 06 Jul 2020)

Log Message

svn-apply should use verbose mode when adding files to git
https://bugs.webkit.org/show_bug.cgi?id=214022

Reviewed by Darin Adler.

If a patch contains several copy or add operations it can happen that there is
no output for more than 600 seconds meanwhile the tool is applying the patch.
This can cause a fatal error on the EWS. Pass the verbose flag to git,
so it outputs the name of the file after adding it to the index.
This is consequent how "svn add" works by default (it outputs the name of the file),
or how "git rm" works (it also outputs the name of the file by default as well).

* Scripts/svn-apply:
(scmCopy):
(scmAdd):
(scmCommitQueueAdded):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (264001 => 264002)


--- trunk/Tools/ChangeLog	2020-07-07 00:15:28 UTC (rev 264001)
+++ trunk/Tools/ChangeLog	2020-07-07 00:46:03 UTC (rev 264002)
@@ -1,3 +1,22 @@
+2020-07-06  Carlos Alberto Lopez Perez  <[email protected]>
+
+        svn-apply should use verbose mode when adding files to git
+        https://bugs.webkit.org/show_bug.cgi?id=214022
+
+        Reviewed by Darin Adler.
+
+        If a patch contains several copy or add operations it can happen that there is
+        no output for more than 600 seconds meanwhile the tool is applying the patch.
+        This can cause a fatal error on the EWS. Pass the verbose flag to git,
+        so it outputs the name of the file after adding it to the index.
+        This is consequent how "svn add" works by default (it outputs the name of the file),
+        or how "git rm" works (it also outputs the name of the file by default as well).
+
+        * Scripts/svn-apply:
+        (scmCopy):
+        (scmAdd):
+        (scmCommitQueueAdded):
+
 2020-07-06  Chris Fleizach  <[email protected]>
 
         AX: Implement user action spec for Escape action

Modified: trunk/Tools/Scripts/svn-apply (264001 => 264002)


--- trunk/Tools/Scripts/svn-apply	2020-07-07 00:15:28 UTC (rev 264001)
+++ trunk/Tools/Scripts/svn-apply	2020-07-07 00:46:03 UTC (rev 264002)
@@ -468,7 +468,7 @@
         system("svn", "copy", $escapedSource, $escapedDestination) == 0 or die "Failed to svn copy $escapedSource $escapedDestination.";
     } elsif (isGit()) {
         copy($source, $destination) or die "Failed to copy $source $destination.";
-        system("git", "add", $destination) == 0 or die "Failed to git add $destination.";
+        system("git", "add", "-v", $destination) == 0 or die "Failed to git add $destination.";
     }
 }
 
@@ -479,7 +479,7 @@
         my $escapedPath = escapeSubversionPath($path);
         system("svn", "add", $escapedPath) == 0 or die "Failed to svn add $escapedPath.";
     } elsif (isGit()) {
-        system("git", "add", $path) == 0 or die "Failed to git add $path.";
+        system("git", "add", "-v", $path) == 0 or die "Failed to git add $path.";
     }
 }
 
@@ -526,7 +526,7 @@
     if (isSVN()) {
         @cmdBase = ("svn", "add")
     } elsif (isGit()) {
-        @cmdBase = ("git", "add")
+        @cmdBase = ("git", "add", "-v")
     }
 
     # When we are handling a very large patch (more than 1000 files modified)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to