This is an archive of the discontinued Mercurial Phabricator instance.

repo: look up nullrev context by revnum, not symbolic name
ClosedPublic

Authored by martinvonz on Sep 27 2018, 12:59 PM.

Details

Summary

I think lookup of the 'null' symbol should be done via
scmutil.revsymbol() and repo['null'] is only supported for historical
reasons. However, repo[nullrev] is fine, so we can switch to that
instead of switching to scmutil.revsymbol('null').

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.