##// END OF EJS Templates
rev_start for compare should use parents only if there are present
marcink -
r3386:934f1fd5 beta
parent child Browse files
Show More
@@ -41,6 +41,7 b' from rhodecode.model.db import Repositor'
41 41 from rhodecode.model.pull_request import PullRequestModel
42 42 from webob.exc import HTTPBadRequest
43 43 from rhodecode.lib.diffs import LimitedDiffContainer
44 from rhodecode.lib.vcs.backends.base import EmptyChangeset
44 45
45 46 log = logging.getLogger(__name__)
46 47
@@ -136,7 +137,7 b' class CompareController(BaseRepoControll'
136 137 # get parent of
137 138 # rev start to include it in the diff
138 139 _cs = other_repo.scm_instance.get_changeset(rev_start)
139 rev_start = _cs.parents[0].raw_id
140 rev_start = _cs.parents[0].raw_id if _cs.parents else EmptyChangeset()
140 141 org_ref = ('rev', rev_start)
141 142 other_ref = ('rev', rev_end)
142 143 #if we cherry pick it's not remote, make the other_repo org_repo
General Comments 0
You need to be logged in to leave comments. Login now