D6308: context: check file exists before getting data from _wrappedctx
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Apr 24 14:10:28 EDT 2019
martinvonz added inline comments.
> pulkit wrote in context.py:1827
> I was unable to find some code which can set this to `None`. If you look at write() below in line 1993, it makes sure data is not None.
> I am not sure I understand what this if does. Do you have ideas?
`_markdirty()` without a specified `data` argument seems to do that. The documentation also seems to say that it can be `None` (line 1804 in this version)
To: pulkit, #hg-reviewers
Cc: martinvonz, mercurial-devel
More information about the Mercurial-devel