Fish Trophy

david got a fish trophy!

Fish Trophy

Fix an IndexError for mercurial repositories with no bookmarks.

Review Request #10401 — Created Feb. 10, 2019 and submitted — Latest diff uploaded

Information

rb-gateway
release-1.0.x
e9aac9a...

Reviewers

When a mercurial repository doesn't have any bookmarks defined, the way
we were iterating over them was attempting to process an empty record,
causing an IndexError when we couldn't properly split it. This change
fixes it to test for the empty record, and adds a unit test which
verifies correct behavior for hg repositories with no bookmarks.

Ran unit tests.