This is an archive of the discontinued Mercurial Phabricator instance.

obsutil: maintain a homogenous list when computing successors
ClosedPublic

Authored by mharbison72 on Mar 13 2021, 2:34 PM.

Details

Summary

In practice, this wasn't a problem because of an internal check for an empty
list, but it avoids the following pytype error:

File "/mnt/c/Users/Matt/hg/mercurial/obsutil.py", line 823, in successorsandmarkers: No attribute 'markers' on List[nothing] [attribute-error]
  In Union[Any, List[nothing], _succs]

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.