Mercurial > public > mercurial-scm > hg-stable
comparison hgext/git/gitlog.py @ 45427: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 | e7587430ca23 |
comparison
equal
deleted
inserted
replaced
45426:8ddbb75bad09 | 45427:66a10bd1b8db |
---|---|
94 ) | 94 ) |
95 | 95 |
96 | 96 |
97 # TODO: an interface for the changelog type? | 97 # TODO: an interface for the changelog type? |
98 class changelog(baselog): | 98 class changelog(baselog): |
99 # TODO: this appears to be an enumerated type, and should probably | |
100 # be part of the public changelog interface | |
101 _copiesstorage = b'extra' | |
102 | |
99 def __contains__(self, rev): | 103 def __contains__(self, rev): |
100 try: | 104 try: |
101 self.node(rev) | 105 self.node(rev) |
102 return True | 106 return True |
103 except error.LookupError: | 107 except error.LookupError: |