Handle RepositoryNotFoundException when running reindex

If jgit is not able to open the repository, RepositoryNotFoundException
is raised and results in a stack trace being shown in the output of the
reindex command.

Catch the exception and print a message.

Change-Id: Icfb66567c364ac12d7f1a56b603bbb9867b633cf
Add 'reindex' to the pgm help output.

Change-Id: I237c738dbbc6baf3e73c2de408e04bf2ea982e79
Adjusted LogFileCompressor so it does not rely on log file names

It uses suffixes "_log", ".log", ".run", ".pid" instead.

This way files do not get compressed when using log4j.configuration and
different names.

Change-Id: Ifbe66fb0f9165166b09a37bb5fe4b10e115a3007
Signed-off-by: Eryk Szymanski <eryksz@gmail.com>
Don't depend on InetAddress.getLocalHost() in tests

This is broken in recent versions of Mac OS X:
http://blog.leon-rosenberg.net/2012/08/oracle-kills-getlocalhost-on-macos-x-in.html

Instead, just hard-code 127.0.0.1.

Change-Id: I4e06912a76e9dab11c3909b7bf6c5f5ee5e1613e
Performance Fix: Minimize number of advertisedHaves

While we set up hooks in ReceiveCommits to minimize the number of
advertised refs (for instance filtering out refs/changes and
refs/cache-automerge refs), their objectIds will still be added to
BaseReceivePack.advertisedHaves (JGit), leading to an unnecessarily
complex commit graph for JGit to traverse when checking for commit
connectivity in BaseReceivePack.checkConnectivity().

By filtering the refs before the objectIds are added to advertisedHaves,
lots of time can be saved when pushing to complex Gits.

Push times for one of our Gits (warm caches):

Before fix:
real	0m42.926s

After fix:
real	0m6.325s

This Git has around 90k change/ps refs.

Change-Id: I2f0a0830bd733f908f0aeaf1eaf0412dae428a16
Merge "Don't depend on InetAddress.getLocalHost() in tests"
Fixed the spelling of indefinitely.

Change-Id: I25d0df07d412508d22083e4c42761a942d367ddc
Add startup check for Java 7

Change-Id: I0ebcc126b46d0c948c1d249188bf95f0a8564c9e
Fixed the spelling of together and very minor rewording

Change-Id: Ib4bb64d39638e81f5db222d404fa99d7b2c2e51d
Merge "Fixed the spelling of indefinitely." into stable-2.8
Merge branch 'stable-2.6' into stable-2.7

* stable-2.6:
  Performance Fix: Minimize number of advertisedHaves

Change-Id: Id19a9ef22aa7445bf8188b79d34aeb870eadb988
Merge branch 'stable-2.7' into stable-2.8

* stable-2.7:
  Performance Fix: Minimize number of advertisedHaves
Merge branch 'stable-2.8'

* stable-2.8:
  Fixed the spelling of together and very minor rewording
  Fixed the spelling of indefinitely.
  Performance Fix: Minimize number of advertisedHaves
  Add 'reindex' to the pgm help output.
fixed minor spelling and capitalization mistakes

Change-Id: Ia62684fbcf016c3a723bb886698cbc7b97174125
Merge "fixed minor spelling and capitalization mistakes" into stable-2.8
Merge "Add startup check for Java 7"
Update the Release Notes with Java 7 requirement

Change-Id: Id38bf628d403afe7a718bb7a686dffc7de2481a9
Merge "Handle RepositoryNotFoundException when running reindex" into stable-2.8
Show 'Related Changes' tab only if there are related changes

This is consistent with the other tabs that are only shown if they
contain changes.

Change-Id: I131ac18234f3f9e64e6c364fd63e819eb9202bda
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge branch 'stable-2.8'

* stable-2.8:
  fixed minor spelling and capitalization mistakes
  Handle RepositoryNotFoundException when running reindex

Change-Id: Ifa7fbfb381d5e9dd5a5840c9ec3f16f1ea6d7142