commitcloud: add extras method to FakeCtx

Summary:
The `snapshot` extension expects to be able to call `extra()` on the smartlog
context, so make the method available.

Reviewed By: quark-zju

Differential Revision: D18456550

fbshipit-source-id: 9d1620e1b5fbb0866e728c7b378d37b4de9dbe21
This commit is contained in:
Mark Thomas 2019-11-12 13:52:59 -08:00 committed by Facebook Github Bot
parent 9fed2c8215
commit ac08b49411

View File

@ -82,6 +82,9 @@ class FakeCtx(object):
def date(self):
return (self._nodeinfo.date, 0)
def extra(self):
return {}
def topological(graph):
tovisit = sorted(graph.keys())