mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
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:
parent
9fed2c8215
commit
ac08b49411
@ -82,6 +82,9 @@ class FakeCtx(object):
|
|||||||
def date(self):
|
def date(self):
|
||||||
return (self._nodeinfo.date, 0)
|
return (self._nodeinfo.date, 0)
|
||||||
|
|
||||||
|
def extra(self):
|
||||||
|
return {}
|
||||||
|
|
||||||
|
|
||||||
def topological(graph):
|
def topological(graph):
|
||||||
tovisit = sorted(graph.keys())
|
tovisit = sorted(graph.keys())
|
||||||
|
Loading…
Reference in New Issue
Block a user