Show dependency list when change is needed by another change

In the current implementation the dependency list is opened only when
the change depends on another unmerged change.

This patch changes the behaviour so that the dependency list will also
be opened when the change is needed by (is a dependency of) another
change that is in new or submitted state.

Change-Id: If3009aba59fdbeebe8d1d7d81300894bb47c0daf
Change PatchTable pointer when loading patch

This patch fixes an issue with the "file list" table displayed by
clicking on the "Files" sub-menu when viewing a diff.

Originally when navigating between patch screens the highlighted row
(pointer) of the file list table would not change when not directly
interacting with the table e.g. by clicking on the previous or next
file link.

This patch updates the file list table whenever a new patch screen is loaded
so that the pointer corresponds to the current patch being displayed.

Change-Id: I8944062ab7abda0951b30b304aaadfd5781c92a8
Merge "Change PatchTable pointer when loading patch"
Removing a couple of unused imports

Change-Id: I210237ebf3bd44d59d00fbc039a4cc5ab77175cf
Merge "Show dependency list when change is needed by another change"
Merge "Removing a couple of unused imports"
Documentation: Various corrections

Correct typos, spelling mistakes, and grammatical errors.

Change-Id: I80ec66de7b2228f9ff45a2f06faf576707195758
Make VisibleRefFilter.Filter reuse the refs passed from JGit.

Change-Id: Iadec426e9c1752b1b08b534834600c17ba2d49e2
No longer throw InvalidChangeOp in changeUpdated

InvalidChangeOperationExceptions are only thrown when we pass a null
change to this method.  It is better that we just don't pass the change
and add a more useful error to the ReviewResult.

We no longer perform a check to see if the patchset we have is the most
current one.  restore/abandon happens at the change level and the
patchset is just fetched to append a message to the change.

Change-Id: I3b3af1e3982fcd9111214a7c66a28476189c923b
sendemail.includeDiff: Enable $email.UnifiedDiff in NewChange.vm

Instead of making site administrators hack the email template,
allow admins to enable the diff feature by setting a configuration
variable in gerrit.config.

Change-Id: I378485ca076cd9c56bc5149a0aaa202b20ba82d4
Show new change URLs in the body of the new change email

Some email clients hide the signature section of an email
automatically.  If there are no reviewers listed on a new change,
such as when a change is pushed over HTTP and a notification is
automatically sent out to any subscribed watchers, the URL was
hidden inside of the signature and not readily available.

Show the URL right away in the body.

Change-Id: I643d3bd51b9be9273fc9601755622847e7d2d258
sendemail.maximumDiffSize: Limit the size of diffs sent by email

If a unified diff included in an email will exceed the limit
configured by the system administrator, only the affected file
paths are listed in the email instead. This gives interested parties
some context on the size and scope of the change, without killing
their inbox.

Change-Id: I93c6068e9fd04095b6ad353b736126b29c4ed4fc
Fix bad usage of setting display to none

Change-Id: Ib74b3aec326f9970f1e022aa197be5886a19368d
Merge "No longer throw InvalidChangeOp in changeUpdated"
Fix restore of changes if repository is empty

Restoring a change is only possible if the target branch exists. If a
repository is empty there is no branch yet, but pushing to the branch
to which HEAD points is anyway allowed. If a change that was pushed to
this branch is abandoned, Gerrit does not allow to restore it since the
target branch does not exist.

With this change restoring changes that are pushed to the branch to
which HEAD points is now possible even if the branch doesn't exist.

Bug: issue 1430
Change-Id: I8db5b4d9724072495222fdc218e313896c61f45d
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Fix: Popup jumps back to original position when resizing screen.

On 'Watched Projects' screen, the 'Browse' button
display a popup window. If user moves it and then
resizes the screen, it won't snap back to the
original position.

Change-Id: Id8447f345ea19bed9a96e3cff56471f770694a38
Merge "Fix: Popup jumps back to original position when resizing screen."
Merge "Documentation: Various corrections"
Fix description of 'status:abandoned' query operator

The description claimed that the change was either abandoned by the
change owner or an administrator.

Commit 029c85aa8262f7271e9bd121356879c5ae95c0a7 introduced a new access
right for abandoning changes, so that the changes found by
'status:abandoned' also may have been abandoned by a user with this
access right. Instead of listing everybody who can abandon a change,
simply remove this info from the search documentation. Also for other
operators it is not mentioned who was doing the operation to bring the
change into this state.

Change-Id: I5f28601bcc641777d5f205675611fb777d5d4bdc
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Fix restore of changes if repository is empty"