style fixup: remote trailing whitespace from our source lines

Since Eclipse is now configured to strip trailing whitespace from a
line when saving a source file, we fix up any older source file that
still has trailing whitespace on the end of a line.

Change-Id: Ifa03d4b69f28536c6773702eb79b49fb16844ed1
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce 2009-11-02 10:37:01 -08:00
parent 6e9a83f6ca
commit d6078469a9
29 changed files with 46 additions and 47 deletions

View File

@ -100,7 +100,7 @@ Create a new project called `tools/gerrit`:
Create a new project with a description: Create a new project with a description:
==== ====
$ ssh -p 29418 review.example.com gerrit create-project --name tool.git --description "'Tools used by build system'" $ ssh -p 29418 review.example.com gerrit create-project --name tool.git --description "'Tools used by build system'"
==== ====
Note that it is necessary to quote the description twice. The local Note that it is necessary to quote the description twice. The local

View File

@ -38,7 +38,7 @@ EXAMPLES
hit% : 85% hit% : 85%
hit%.memory : 55% hit%.memory : 55%
hit%.disk : 30% hit%.disk : 30%
cache "openid": cache "openid":
items : 8 items : 8
evictions : 0 evictions : 0
@ -46,7 +46,7 @@ EXAMPLES
ttl.live : 5.00 mins ttl.live : 5.00 mins
avg.get : 1.00 ms avg.get : 1.00 ms
hit% : 5% hit% : 5%
cache "sshkeys": cache "sshkeys":
items : 4 items : 4
evictions : 0 evictions : 0
@ -54,12 +54,12 @@ EXAMPLES
ttl.live : inf ttl.live : inf
avg.get : 0.06 ms avg.get : 0.06 ms
hit% : 92% hit% : 92%
JGit Buffer Cache: JGit Buffer Cache:
open files : 9 open files : 9
loaded : 9.99 mb loaded : 9.99 mb
mem% : 3% mem% : 3%
JVM Heap: JVM Heap:
max : 880.00 mb max : 880.00 mb
inuse : 166.96 mb inuse : 166.96 mb

View File

@ -68,7 +68,7 @@ With reverse DNS lookup (default):
-------------------------------------------------------------- --------------------------------------------------------------
14:02:47 00:00:00 jdoe jdoe-desktop.example.com 14:02:47 00:00:00 jdoe jdoe-desktop.example.com
[ gerrit-show-connections ] [ gerrit-show-connections ]
-- --
==== ====
@ -79,7 +79,7 @@ Without reverse DNS lookup:
-------------------------------------------------------------- --------------------------------------------------------------
14:02:48 00:00:00 a/1001240 10.0.0.1 14:02:48 00:00:00 a/1001240 10.0.0.1
[ gerrit-show-connections -n ] [ gerrit-show-connections -n ]
-- --
==== ====

View File

@ -35,7 +35,7 @@ DISPLAY
S:: S::
Current state of the task. States are: Current state of the task. States are:
+ +
* `D`: task is complete, but hasn't released its worker yet. * `D`: task is complete, but hasn't released its worker yet.
* `C`: task has been cancelled, but hasn't left the queue yet. * `C`: task has been cancelled, but hasn't left the queue yet.
* `R`: task is actively running on a worker thread. * `R`: task is actively running on a worker thread.
* `W`: task is ready to run, waiting for a worker thread. * `W`: task is ready to run, waiting for a worker thread.

View File

@ -281,7 +281,7 @@ creating hyperlinks to reference changes on the gitweb server.
Gerrit integrates with an existing git-daemon installation by Gerrit integrates with an existing git-daemon installation by
optionally displaying `git://` URLs for users to download a optionally displaying `git://` URLs for users to download a
change through the native Git protocol. change through the native Git protocol.
Gerrit integrates with any OpenID provider for user authentication, Gerrit integrates with any OpenID provider for user authentication,
making it easier for users to join a Gerrit site and manage their making it easier for users to join a Gerrit site and manage their

View File

@ -103,7 +103,7 @@ creates a state that produces a corrupt production build.
Launch Gerrit Launch Gerrit
------------- -------------
Open Run->Debug Configurations... Open Run->Debug Configurations...
Under Java Application find `gerrit_debug` (not Mac OS X) Under Java Application find `gerrit_debug` (not Mac OS X)
or `gerrit_macos` (Mac OS X only) to start the GWT hosted or `gerrit_macos` (Mac OS X only) to start the GWT hosted

View File

@ -57,7 +57,7 @@ using your real name (sorry, no pseudonyms or anonymous contributions.)
Some people also put extra tags at the end. They'll just be ignored for Some people also put extra tags at the end. They'll just be ignored for
now, but you can do this to mark internal company procedures or just now, but you can do this to mark internal company procedures or just
point out some special detail about the sign-off. point out some special detail about the sign-off.
If you are a subsystem or branch maintainer, sometimes you need to slightly If you are a subsystem or branch maintainer, sometimes you need to slightly
modify patches you receive in order to merge them, because the code is not modify patches you receive in order to merge them, because the code is not

View File

@ -223,10 +223,10 @@ For example, consider the following sequence of events:
$ git rebase -i HEAD~3 ; # edit "A", insert D before B $ git rebase -i HEAD~3 ; # edit "A", insert D before B
; # now series is A'-D-B'-C' ; # now series is A'-D-B'-C'
$ git push ... $ git push ...
HEAD:refs/for/master HEAD:refs/for/master
HEAD~3:refs/changes/1500 HEAD~3:refs/changes/1500
HEAD~1:refs/changes/1501 HEAD~1:refs/changes/1501
HEAD~0:refs/changes/1502 ; # upload replacements HEAD~0:refs/changes/1502 ; # upload replacements
==== ====

View File

@ -332,7 +332,7 @@ limitations under the License.
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>compile</goal> <goal>compile</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
@ -431,7 +431,7 @@ limitations under the License.
</copy> </copy>
<apply executable="gzip" addsourcefile="false"> <apply executable="gzip" addsourcefile="false">
<arg value="-9"/> <arg value="-9"/>
<fileset dir="${m}" <fileset dir="${m}"
includes="**/*.html,**/*.css"/> includes="**/*.html,**/*.css"/>
<redirector> <redirector>

View File

@ -5,7 +5,7 @@ preferredEmail = Email Address
registeredOn = Registered registeredOn = Registered
accountId = Account ID accountId = Account ID
showSiteHeader = Show Site Header showSiteHeader = Show Site Header
useFlashClipboard = Use Flash Clipboard Widget useFlashClipboard = Use Flash Clipboard Widget
defaultContextFieldLabel = Default Context: defaultContextFieldLabel = Default Context:
maximumPageSizeFieldLabel = Maximum Page Size: maximumPageSizeFieldLabel = Maximum Page Size:
contextWholeFile = Whole File contextWholeFile = Whole File

View File

@ -7,7 +7,7 @@ buttonDeleteGroupMembers = Delete
buttonAddGroupMember = Add buttonAddGroupMember = Add
buttonRenameGroup = Rename Group buttonRenameGroup = Rename Group
buttonSaveDescription = Save Description buttonSaveDescription = Save Description
buttonCreateGroup = Create Group buttonCreateGroup = Create Group
buttonChangeGroupOwner = Change Owner buttonChangeGroupOwner = Change Owner
buttonChangeGroupType = Change Type buttonChangeGroupType = Change Type
buttonSelectGroup = Select buttonSelectGroup = Select

View File

@ -1,4 +1,3 @@
group = Group {0} group = Group {0}
project = Project {0} project = Project {0}
deletedGroup = Deleted Group {0} deletedGroup = Deleted Group {0}

View File

@ -26,7 +26,7 @@ public class ToggleStarRequest {
/** /**
* Request an update to the change's star status. * Request an update to the change's star status.
* *
* @param id unique id of the change, must not be null. * @param id unique id of the change, must not be null.
* @param on true if the change should now be starred; false if it should now * @param on true if the change should now be starred; false if it should now
* be not starred. * be not starred.

View File

@ -38,7 +38,7 @@ public class AccountInfo {
/** /**
* Create an account description from a real data store record. * Create an account description from a real data store record.
* *
* @param a the data store record holding the specific account details. * @param a the data store record holding the specific account details.
*/ */
public AccountInfo(final Account a) { public AccountInfo(final Account a) {

View File

@ -19,7 +19,7 @@ import com.google.gwtorm.client.IntKey;
/** /**
* An agreement {@link Account} must acknowledge to contribute changes. * An agreement {@link Account} must acknowledge to contribute changes.
* *
* @see AccountAgreement * @see AccountAgreement
*/ */
public final class ContributorAgreement { public final class ContributorAgreement {
@ -79,7 +79,7 @@ public final class ContributorAgreement {
/** /**
* Create a new agreement. * Create a new agreement.
* *
* @param newId unique id, see {@link ReviewDb#nextAccountId()}. * @param newId unique id, see {@link ReviewDb#nextAccountId()}.
* @param name a short title/name for the agreement. * @param name a short title/name for the agreement.
*/ */

View File

@ -105,7 +105,7 @@ public class ComplexDisclosurePanel extends Composite implements
/** /**
* Changes the visible state of this panel's content. * Changes the visible state of this panel's content.
* *
* @param isOpen <code>true</code> to open, <code>false</code> to close * @param isOpen <code>true</code> to open, <code>false</code> to close
*/ */
public void setOpen(final boolean isOpen) { public void setOpen(final boolean isOpen) {

View File

@ -33,7 +33,7 @@ import com.google.gwt.user.client.ui.InlineHyperlink;
public abstract class DirectScreenLink extends InlineHyperlink { public abstract class DirectScreenLink extends InlineHyperlink {
/** /**
* Creates a link with its text and target history token specified. * Creates a link with its text and target history token specified.
* *
* @param text the hyperlink's text * @param text the hyperlink's text
* @param historyToken the history token to which it will link * @param historyToken the history token to which it will link
*/ */

View File

@ -78,7 +78,7 @@
-moz-border-radius-topright: 8px; -moz-border-radius-topright: 8px;
-moz-border-radius-bottomleft: 0; -moz-border-radius-bottomleft: 0;
-moz-border-radius-bottomright: 0; -moz-border-radius-bottomright: 0;
-webkit-border-top-left-radius: 8px; -webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px; -webkit-border-top-right-radius: 8px;
-webkit-border-bottom-left-radius: 0px; -webkit-border-bottom-left-radius: 0px;
@ -393,7 +393,7 @@
.gerrit-AccountDashboard.gerrit-ChangeTable .ActiveRow { .gerrit-AccountDashboard.gerrit-ChangeTable .ActiveRow {
background: #ffffcc; background: #ffffcc;
} }
.gerrit-ChangeTable .C_ID { .gerrit-ChangeTable .C_ID {
width: 3.5em; width: 3.5em;
} }
@ -1025,7 +1025,7 @@
-moz-border-radius-topright: 8px; -moz-border-radius-topright: 8px;
-moz-border-radius-bottomleft: 8px; -moz-border-radius-bottomleft: 8px;
-moz-border-radius-bottomright: 8px; -moz-border-radius-bottomright: 8px;
-webkit-border-top-left-radius: 8px; -webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px; -webkit-border-top-right-radius: 8px;
-webkit-border-bottom-left-radius: 8px; -webkit-border-bottom-left-radius: 8px;

View File

@ -20,7 +20,7 @@ import eu.medsea.mimeutil.MimeUtil2;
public interface FileTypeRegistry { public interface FileTypeRegistry {
/** /**
* Get the most specific MIME type available for a file. * Get the most specific MIME type available for a file.
* *
* @param path name of the file. The base name (component after the last '/') * @param path name of the file. The base name (component after the last '/')
* may be used to help determine the MIME type, such as by examining * may be used to help determine the MIME type, such as by examining
* the extension (portion after the last '.' if present). * the extension (portion after the last '.' if present).
@ -35,7 +35,7 @@ public interface FileTypeRegistry {
/** /**
* Is this content type safe to transmit to a browser directly? * Is this content type safe to transmit to a browser directly?
* *
* @param type the MIME type of the file content. * @param type the MIME type of the file content.
* @return true if the Gerrit administrator wants to permit this content to be * @return true if the Gerrit administrator wants to permit this content to be
* served as-is; false if the administrator does not trust this * served as-is; false if the administrator does not trust this

View File

@ -23,7 +23,7 @@ public interface EmailSender {
/** /**
* Sends an email message. * Sends an email message.
* *
* @param from who the message is from. * @param from who the message is from.
* @param rcpt one or more address where the message will be delivered to. * @param rcpt one or more address where the message will be delivered to.
* This list overrides any To or CC headers in {@code headers}. * This list overrides any To or CC headers in {@code headers}.

View File

@ -3,19 +3,19 @@
# Part of Gerrit Code Review (http://code.google.com/p/gerrit/) # Part of Gerrit Code Review (http://code.google.com/p/gerrit/)
# #
# Copyright (C) 2009 The Android Open Source Project # Copyright (C) 2009 The Android Open Source Project
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
usage() { usage() {
echo >&2 "usage: $0 remote changeid..." echo >&2 "usage: $0 remote changeid..."

View File

@ -3,19 +3,19 @@
# Part of Gerrit Code Review (http://code.google.com/p/gerrit/) # Part of Gerrit Code Review (http://code.google.com/p/gerrit/)
# #
# Copyright (C) 2009 The Android Open Source Project # Copyright (C) 2009 The Android Open Source Project
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
CHANGE_ID_AFTER="Bug|Issue" CHANGE_ID_AFTER="Bug|Issue"
MSG="$1" MSG="$1"

View File

@ -13,7 +13,7 @@
var r = '/Gerrit'; var r = '/Gerrit';
if (href.length >= r.length if (href.length >= r.length
&& href.substring(href.length - r.length) == r) { && href.substring(href.length - r.length) == r) {
href = href.substring(0, href.length - r.length + 1) + token; href = href.substring(0, href.length - r.length + 1) + token;
} else { } else {
href = '.' + token; href = '.' + token;

View File

@ -45,7 +45,7 @@
<Set name="username">gerrit2</Set> <Set name="username">gerrit2</Set>
<Set name="password">secretkey</Set> <Set name="password">secretkey</Set>
--> -->
<!-- MySQL <!-- MySQL
<Set name="driverClassName">com.mysql.jdbc.Driver</Set> <Set name="driverClassName">com.mysql.jdbc.Driver</Set>
<Set name="url">jdbc:mysql://localhost/reviewdb?user=gerrit2&amp;password=secretkey</Set> <Set name="url">jdbc:mysql://localhost/reviewdb?user=gerrit2&amp;password=secretkey</Set>
--> -->

View File

@ -45,7 +45,7 @@
<Set name="username">gerrit2</Set> <Set name="username">gerrit2</Set>
<Set name="password">secretkey</Set> <Set name="password">secretkey</Set>
--> -->
<!-- MySQL <!-- MySQL
<Set name="driverClassName">com.mysql.jdbc.Driver</Set> <Set name="driverClassName">com.mysql.jdbc.Driver</Set>
<Set name="url">jdbc:mysql://localhost/reviewdb?user=gerrit2&amp;password=secretkey</Set> <Set name="url">jdbc:mysql://localhost/reviewdb?user=gerrit2&amp;password=secretkey</Set>
--> -->

View File

@ -18,7 +18,7 @@ VALUES
UPDATE project_rights UPDATE project_rights
SET max_value = 2 SET max_value = 2
WHERE max_value = 1 WHERE max_value = 1
AND category_id = 'pTAG'; AND category_id = 'pTAG';
UPDATE project_rights UPDATE project_rights
SET min_value = max_value, max_value = min_value SET min_value = max_value, max_value = min_value

View File

@ -13,7 +13,7 @@ PRIMARY KEY (account_id, change_id, patch_set_id, file_name)
INSERT INTO approval_categories INSERT INTO approval_categories
(name, position, function_name, category_id) (name, position, function_name, category_id)
VALUES VALUES
('Owner', -1, 'NoOp', 'OWN'); ('Owner', -1, 'NoOp', 'OWN');
INSERT INTO approval_category_values INSERT INTO approval_category_values
(category_id, value, name) (category_id, value, name)

View File

@ -85,7 +85,7 @@ AND (SELECT COUNT(*) FROM accounts b
AND account_id <> (SELECT s.account_id FROM account_ssh_keys r, accounts s AND account_id <> (SELECT s.account_id FROM account_ssh_keys r, accounts s
WHERE s.ssh_user_name = accounts.ssh_user_name WHERE s.ssh_user_name = accounts.ssh_user_name
AND r.account_id = s.account_id AND r.account_id = s.account_id
AND r.last_used_on = AND r.last_used_on =
(SELECT MAX(k.last_used_on) (SELECT MAX(k.last_used_on)
FROM account_ssh_keys k, accounts b FROM account_ssh_keys k, accounts b
WHERE b.ssh_user_name = accounts.ssh_user_name WHERE b.ssh_user_name = accounts.ssh_user_name

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!-- <!--
This is for hosted mode debugging only. This is for hosted mode debugging only.
--> -->
<Configure class="org.mortbay.jetty.webapp.WebAppContext"> <Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="extraClasspath">target/classes</Set> <Set name="extraClasspath">target/classes</Set>