# HG changeset patch # User Mads Kiilerich # Date 1438770581 -7200 # Node ID 68bdd7646187345dc8606ed124f8837f6c42e1ef # Parent eb337bdaa0e105d4d115719852c7e676f64d0dae pullrequests: if no ancestor is found, use the null revision hash instead of 'None' (Issue #149) diff -r eb337bdaa0e1 -r 68bdd7646187 kallithea/controllers/pullrequests.py --- a/kallithea/controllers/pullrequests.py Wed Aug 05 12:29:41 2015 +0200 +++ b/kallithea/controllers/pullrequests.py Wed Aug 05 12:29:41 2015 +0200 @@ -338,6 +338,8 @@ other_repo.scm_instance, other_rev, # org and other "swapped" org_repo.scm_instance, org_rev, ) + if ancestor_rev is None: + ancestor_rev = org_repo.scm_instance.EMPTY_CHANGESET revisions = [cs.raw_id for cs in cs_ranges] # hack: ancestor_rev is not an other_rev but we want to show the