comparison mercurial/changelog.py @ 42301:2a7109cc5a28

changelog: define changelogrevision.p[12]copies for null revision Looks like I missed these in 5382d8f8530b (changelog: parse copy metadata if available in extras, 2017-12-27). `hg debugp[12]copies -r null` fails before this patch. Differential Revision: https://phab.mercurial-scm.org/D6376
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 14 May 2019 22:56:58 -0700
parents 278dcb24e535
children f385ba70e4af
comparison
equal deleted inserted replaced
42300:278dcb24e535 42301:2a7109cc5a28
192 extra = attr.ib() 192 extra = attr.ib()
193 manifest = attr.ib(default=nullid) 193 manifest = attr.ib(default=nullid)
194 user = attr.ib(default='') 194 user = attr.ib(default='')
195 date = attr.ib(default=(0, 0)) 195 date = attr.ib(default=(0, 0))
196 files = attr.ib(default=attr.Factory(list)) 196 files = attr.ib(default=attr.Factory(list))
197 p1copies = attr.ib(default=None)
198 p2copies = attr.ib(default=None)
197 description = attr.ib(default='') 199 description = attr.ib(default='')
198 200
199 class changelogrevision(object): 201 class changelogrevision(object):
200 """Holds results of a parsed changelog revision. 202 """Holds results of a parsed changelog revision.
201 203