state: add the get() method that evolvecmd:1836 expects
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 06 Jul 2018 11:36:24 -0700
changeset 3874 830a2597ba26
parent 3873 b81fd1487e04
child 3875 a93e81733549
state: add the get() method that evolvecmd:1836 expects
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)