Mercurial > evolve
changeset 3874:830a2597ba26
state: add the get() method that evolvecmd:1836 expects
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 06 Jul 2018 11:36:24 -0700 |
parents | b81fd1487e04 |
children | a93e81733549 |
files | hgext3rd/evolve/state.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)