mercurial/changelog.py
changeset 47012 d55b71393907
parent 46819 d4ba4d51f85f
child 47072 4c041c71ec01
equal deleted inserted replaced
46992:5fa019ceb499 47012:d55b71393907
     9 
     9 
    10 from .i18n import _
    10 from .i18n import _
    11 from .node import (
    11 from .node import (
    12     bin,
    12     bin,
    13     hex,
    13     hex,
    14     nullid,
       
    15 )
    14 )
    16 from .thirdparty import attr
    15 from .thirdparty import attr
    17 
    16 
    18 from . import (
    17 from . import (
    19     encoding,
    18     encoding,
   219         '_changes',
   218         '_changes',
   220     )
   219     )
   221 
   220 
   222     def __new__(cls, cl, text, sidedata, cpsd):
   221     def __new__(cls, cl, text, sidedata, cpsd):
   223         if not text:
   222         if not text:
   224             return _changelogrevision(extra=_defaultextra, manifest=nullid)
   223             return _changelogrevision(extra=_defaultextra, manifest=cl.nullid)
   225 
   224 
   226         self = super(changelogrevision, cls).__new__(cls)
   225         self = super(changelogrevision, cls).__new__(cls)
   227         # We could return here and implement the following as an __init__.
   226         # We could return here and implement the following as an __init__.
   228         # But doing it here is equivalent and saves an extra function call.
   227         # But doing it here is equivalent and saves an extra function call.
   229 
   228