comparison mercurial/revlog.py @ 41301:13c23396c7fe stable

rust: add comment about lack of wdirrev handling If hg is compiled with rust support, 'only(wdir())' crashed as "rustext.GraphError: ('ParentOutOfRange', 2147483647)", which should instead say "abort: working directory revision cannot be specified."
author Yuya Nishihara <yuya@tcha.org>
date Sun, 20 Jan 2019 11:57:36 +0900
parents 00b314c42094
children c953c2a94d68
comparison
equal deleted inserted replaced
41300:66102f6fa10a 41301:13c23396c7fe
894 """ 894 """
895 if common is None: 895 if common is None:
896 common = [nullrev] 896 common = [nullrev]
897 897
898 if rustext is not None: 898 if rustext is not None:
899 # TODO: WdirUnsupported should be raised instead of GraphError
900 # if common includes wdirrev
899 return rustext.ancestor.MissingAncestors(self.index, common) 901 return rustext.ancestor.MissingAncestors(self.index, common)
900 return ancestor.incrementalmissingancestors(self.parentrevs, common) 902 return ancestor.incrementalmissingancestors(self.parentrevs, common)
901 903
902 def findmissingrevs(self, common=None, heads=None): 904 def findmissingrevs(self, common=None, heads=None):
903 """Return the revision numbers of the ancestors of heads that 905 """Return the revision numbers of the ancestors of heads that