Mercurial > hg
changeset 45414:66a10bd1b8db
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
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 07 Sep 2020 15:46:56 -0400 |
parents | 8ddbb75bad09 |
children | c8695439d7e3 |
files | hgext/git/gitlog.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)