changeset 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 66102f6fa10a
children a322dbee4eda c953c2a94d68
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Sun Jan 20 11:51:21 2019 +0900
+++ b/mercurial/revlog.py	Sun Jan 20 11:57:36 2019 +0900
@@ -896,6 +896,8 @@
             common = [nullrev]
 
         if rustext is not None:
+            # TODO: WdirUnsupported should be raised instead of GraphError
+            # if common includes wdirrev
             return rustext.ancestor.MissingAncestors(self.index, common)
         return ancestor.incrementalmissingancestors(self.parentrevs, common)