Fix error when posting a review inside a mercurial branch

Review Request #2487 — Created July 21, 2011 and submitted

Information

RBTools

Reviewers

Fix error when posting a review inside a mercurial branch

The _get_top_and_bottom_outgoing_revs method for the MercurialClient
was assuming all revision numbers were consecutive which is not necessarily
true at all times, especially when branches exists. This change tries to
fetch the "parent" revision instead of just subtracting one to the bottom_rev
to be reviewed, if this revision is not found it falls back to the old
behavior

 
chipx86
  1. Fixing a couple stylistic errors, but otherwise it looks fine. Thanks!
  2. 
      
DC
Review request changed
Status:
Completed
Change Summary:
Committed to master (267dc80)