mercurial: use commit_ids for parents/children instead of revisions which could change when evolve is used.
This commit is contained in:
parent
3a2a029811
commit
21f849c51b
1 changed files with 3 additions and 3 deletions
|
|
@ -149,9 +149,9 @@ class MercurialCommit(base.BaseCommit):
|
|||
def short_id(self):
|
||||
return self.raw_id[:12]
|
||||
|
||||
def _make_commits(self, indexes, pre_load=None):
|
||||
return [self.repository.get_commit(commit_idx=idx, pre_load=pre_load)
|
||||
for idx in indexes if idx >= 0]
|
||||
def _make_commits(self, commit_ids, pre_load=None):
|
||||
return [self.repository.get_commit(commit_id=commit_id, pre_load=pre_load)
|
||||
for commit_id in commit_ids]
|
||||
|
||||
@LazyProperty
|
||||
def parents(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue