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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed May 15 02:03:02 EDT 2019


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

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):



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


More information about the Mercurial-devel mailing list