D5409: remotefilelog: accepting a None node to cmp
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Tue Dec 11 07:42:02 EST 2018
yuja added a comment.
> In context.py, basefilectx.cmp explicitly calls it with None, so it has to be
> supported. Specifically, this breaks "hg absorb -i" currently.
IIUC, `self._filenode` should never be `None` if the given `fctx._filenode`
is `None`. If `None` were passed down to the filelog layer, exception would
be raised.
> returns True if text is different than what is stored.
> """
>
>
> - if node == nullid: + if not node or node == nullid: return True
Are we sure that the working-directory data is different from the given text?
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5409
To: rdamazio, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list