Avoid error message on "New Review Request page" for Mercurial < 3.9

Review Request #498 — Created March 22, 2017 and updated

guest6717
Review Board
8eba94c...
guest
If the repository hosting uses a Mercurial 3.7 it is possible to get branches
(/json-branches/) with the JSON API of hgweb. But it leads to an error if
reviewboard tries to fetch "/json-log/?rev=" as it is not implemented.

Also avoid an error if Mercurial is really old and does not support to get
branches in JSON style with "/json-branches/".

Testing Done:
Opened "New Review Request page" and check if branch and commit list works
properly and does not contain errors.

Tested versions: 2.6.2, 3.0, 3.7.3, 4.1

Bugs closed: 4524

Reviewed at https://reviews.reviewboard.org/r/8778/

r3gf3rgr

Description From Last Updated

Lets try a comment/issue

guest5419guest5419

that me liked

guest5419guest5419

lines?

guest5419guest5419
Loading...