Mercurial > kallithea
comparison rhodecode/controllers/compare.py @ 4040:d415621fa7c5
compare: handle revisions and ancestor of empty range in _get_changesets
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 26 Jun 2013 00:20:17 +0200 |
parents | b44fabc4377c |
children | 15f4825890fe |
comparison
equal
deleted
inserted
replaced
4039:b44fabc4377c | 4040:d415621fa7c5 |
---|---|
108 :param tmp: | 108 :param tmp: |
109 """ | 109 """ |
110 | 110 |
111 ancestor = None | 111 ancestor = None |
112 | 112 |
113 if alias == 'hg': | 113 if org_rev == other_rev: |
114 changesets = [] | |
115 if merge: | |
116 ancestor = org_rev | |
117 | |
118 elif alias == 'hg': | |
114 # lookup up the exact node id | 119 # lookup up the exact node id |
115 _revset_predicates = { | 120 _revset_predicates = { |
116 'branch': 'branch', | 121 'branch': 'branch', |
117 'book': 'bookmark', | 122 'book': 'bookmark', |
118 'tag': 'tag', | 123 'tag': 'tag', |