git: restore basic functionality after b3040b6739ce
authorAugie Fackler <raf@durin42.com>
Mon, 07 Sep 2020 15:46:56 -0400
changeset 45427 66a10bd1b8db
parent 45426 8ddbb75bad09
child 45428 c8695439d7e3
git: restore basic functionality after b3040b6739ce We don't yet have a formal interface for the changelog, but it's mostly specified. Sadly, b3040b6739ce added a semi-private pseudo-enum that we need to cope with, so it's probably high time that someone (me?) attempts to define that interface to prevent future backsliding. Differential Revision: https://phab.mercurial-scm.org/D8992
hgext/git/gitlog.py
--- a/hgext/git/gitlog.py	Mon Sep 07 15:31:34 2020 -0400
+++ b/hgext/git/gitlog.py	Mon Sep 07 15:46:56 2020 -0400
@@ -96,6 +96,10 @@
 
 # TODO: an interface for the changelog type?
 class changelog(baselog):
+    # TODO: this appears to be an enumerated type, and should probably
+    # be part of the public changelog interface
+    _copiesstorage = b'extra'
+
     def __contains__(self, rev):
         try:
             self.node(rev)