##// END OF EJS Templates
mercurial: don't rely on commit revs for parents/children as they can change when repository is altered using evolve.
marcink -
r782:7fab2db5 default
parent child Browse files
Show More
@@ -299,7 +299,7 b' class HgRemote(RemoteBase):'
299 def _ctx_parents(_repo_id, _commit_id):
299 def _ctx_parents(_repo_id, _commit_id):
300 repo = self._factory.repo(wire)
300 repo = self._factory.repo(wire)
301 ctx = self._get_ctx(repo, commit_id)
301 ctx = self._get_ctx(repo, commit_id)
302 return [parent.rev() for parent in ctx.parents()
302 return [parent.hex() for parent in ctx.parents()
303 if not (parent.hidden() or parent.obsolete())]
303 if not (parent.hidden() or parent.obsolete())]
304
304
305 return _ctx_parents(repo_id, commit_id)
305 return _ctx_parents(repo_id, commit_id)
@@ -311,7 +311,7 b' class HgRemote(RemoteBase):'
311 def _ctx_children(_repo_id, _commit_id):
311 def _ctx_children(_repo_id, _commit_id):
312 repo = self._factory.repo(wire)
312 repo = self._factory.repo(wire)
313 ctx = self._get_ctx(repo, commit_id)
313 ctx = self._get_ctx(repo, commit_id)
314 return [child.rev() for child in ctx.children()
314 return [child.hex() for child in ctx.children()
315 if not (child.hidden() or child.obsolete())]
315 if not (child.hidden() or child.obsolete())]
316
316
317 return _ctx_children(repo_id, commit_id)
317 return _ctx_children(repo_id, commit_id)
General Comments 0
You need to be logged in to leave comments. Login now