changelog: define changelogrevision.p[12]copies for null revision
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 14 May 2019 22:56:58 -0700
changeset 42301 2a7109cc5a28
parent 42300 278dcb24e535
child 42302 d1786c1d34fa
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
mercurial/changelog.py
--- a/mercurial/changelog.py	Tue Apr 23 13:29:13 2019 -0700
+++ b/mercurial/changelog.py	Tue May 14 22:56:58 2019 -0700
@@ -194,6 +194,8 @@
     user = attr.ib(default='')
     date = attr.ib(default=(0, 0))
     files = attr.ib(default=attr.Factory(list))
+    p1copies = attr.ib(default=None)
+    p2copies = attr.ib(default=None)
     description = attr.ib(default='')
 
 class changelogrevision(object):