Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1625)

Unified Diff: Tools/Scripts/VCSUtils.pm

Issue 20652002: Fix trailing whitespace in scripts and misc. files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't change literal diff. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/Scripts/SpacingHeuristics.pm ('k') | Tools/Scripts/add-include » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/Scripts/VCSUtils.pm
diff --git a/Tools/Scripts/VCSUtils.pm b/Tools/Scripts/VCSUtils.pm
index cf87db33e16a9ca2b5dc050f53ae42773de8eef8..dcf0a32fc043dcd37c153035fbbd56debf6f3c54 100644
--- a/Tools/Scripts/VCSUtils.pm
+++ b/Tools/Scripts/VCSUtils.pm
@@ -8,13 +8,13 @@
# are met:
#
# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
+# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
+# documentation and/or other materials provided with the distribution.
# 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
# its contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
+# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -456,16 +456,16 @@ sub possiblyColored($$)
}
}
-sub adjustPathForRecentRenamings($)
-{
- my ($fullPath) = @_;
-
+sub adjustPathForRecentRenamings($)
+{
+ my ($fullPath) = @_;
+
$fullPath =~ s|WebCore/webaudio|WebCore/Modules/webaudio|g;
$fullPath =~ s|JavaScriptCore/wtf|WTF/wtf|g;
$fullPath =~ s|test_expectations.txt|TestExpectations|g;
- return $fullPath;
-}
+ return $fullPath;
+}
sub canonicalizePath($)
{
@@ -1177,7 +1177,7 @@ sub parseSvnDiffProperties($$)
if ($propertyHashRef->{name} eq "svn:executable") {
# Notice, for SVN properties, propertyChangeDelta is always non-zero
# because a property can only be added or removed.
- $footer{executableBitDelta} = $propertyHashRef->{propertyChangeDelta};
+ $footer{executableBitDelta} = $propertyHashRef->{propertyChangeDelta};
}
}
@@ -1516,7 +1516,7 @@ sub setChangeLogDateAndReviewer($$$)
# Returns $changeLogHashRef:
# $changeLogHashRef: a hash reference representing a change log patch.
# patch: a ChangeLog patch equivalent to the given one, but with the
-# newest ChangeLog entry inserted at the top of the file, if possible.
+# newest ChangeLog entry inserted at the top of the file, if possible.
sub fixChangeLogPatch($)
{
my $patch = shift; # $patch will only contain patch fragments for ChangeLog.
@@ -1660,10 +1660,10 @@ sub generatePatchCommand($)
shouldReverse => 0,
options => []
};
-
+
# Merges hash references. It's okay here if passed hash reference is undefined.
@{$argsHashRef}{keys %{$passedArgsHashRef}} = values %{$passedArgsHashRef};
-
+
my $ensureForce = $argsHashRef->{ensureForce};
my $shouldReverse = $argsHashRef->{shouldReverse};
my $options = $argsHashRef->{options};
@@ -1989,8 +1989,8 @@ sub decodeGitBinaryPatch($$)
sub readByte($$)
{
my ($data, $location) = @_;
-
- # Return the byte at $location in $data as a numeric value.
+
+ # Return the byte at $location in $data as a numeric value.
return ord(substr($data, $location, 1));
}
@@ -2002,7 +2002,7 @@ sub readByte($$)
sub decodeGitBinaryPatchDeltaSize($)
{
my ($binaryChunk) = @_;
-
+
# Source and destination buffer sizes are stored in 7-bit chunks at the
# start of the binary delta patch data. The highest bit in each byte
# except the last is set; the remaining 7 bits provide the next
@@ -2024,7 +2024,7 @@ sub decodeGitBinaryPatchDeltaSize($)
sub applyGitBinaryPatchDelta($$)
{
my ($binaryChunk, $originalContents) = @_;
-
+
# Git delta format consists of two headers indicating source buffer size
# and result size, then a series of commands. Each command is either
# a copy-from-old-version (the 0x80 bit is set) or a copy-from-delta
« no previous file with comments | « Tools/Scripts/SpacingHeuristics.pm ('k') | Tools/Scripts/add-include » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698