##// END OF EJS Templates
mercurial: replace ancestor to pure python version for hg 4.1 compatability problems....
marcink -
r163:41539c12 default
parent child Browse files
Show More
@@ -674,12 +674,10 b' class HgRemote(object):'
674 674 @reraise_safe_exceptions
675 675 def ancestor(self, wire, revision1, revision2):
676 676 repo = self._factory.repo(wire)
677 baseui = self._factory._create_config(wire['config'])
678 output = io.BytesIO()
679 baseui.write = output.write
680 commands.debugancestor(baseui, repo, revision1, revision2)
681
682 return output.getvalue()
677 changelog = repo.changelog
678 lookup = repo.lookup
679 a = changelog.ancestor(lookup(revision1), lookup(revision2))
680 return hex(a)
683 681
684 682 @reraise_safe_exceptions
685 683 def push(self, wire, revisions, dest_path, hooks=True,
General Comments 0
You need to be logged in to leave comments. Login now