# HG changeset patch # User Martin von Zweigbergk # Date 1530902184 25200 # Node ID 830a2597ba26f26d92b6095519cbfbfa8baf7cba # Parent b81fd1487e0468a78df0a9ace2ad8e40cbcbc350 state: add the get() method that evolvecmd:1836 expects diff -r b81fd1487e04 -r 830a2597ba26 hgext3rd/evolve/state.py --- a/hgext3rd/evolve/state.py Sun Jun 17 03:56:54 2018 +0200 +++ b/hgext3rd/evolve/state.py Fri Jul 06 11:36:24 2018 -0700 @@ -48,6 +48,9 @@ def __getitem__(self, key): return self.opts[key] + def get(self, key, default=None): + return self.opts.get(key, default) + def __setitem__(self, key, value): updates = {key: value} self.opts.update(updates)