Patchwork D6376: changelog: define changelogrevision.p[12]copies for null revision

login
register
mail settings
Submitter phabricator
Date May 15, 2019, 6:03 a.m.
Message ID <differential-rev-PHID-DREV-qevp4h35mek6kp6dwpe3-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/40033/
State Superseded
Headers show

Comments

phabricator - May 15, 2019, 6:03 a.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Looks like I missed these in https://phab.mercurial-scm.org/rHG5382d8f8530b65ef9527596ddf6a0a24b6fd2fc6 (changelog: parse copy
  metadata if available in extras, 2017-12-27). `hg debugp[12]copies -r
  null` fails before this patch.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6376

AFFECTED FILES
  mercurial/changelog.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/changelog.py b/mercurial/changelog.py
--- a/mercurial/changelog.py
+++ b/mercurial/changelog.py
@@ -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):