def __init__(self, **kwds): k = DecayDict(**kwds) self.name = k.name self.exists = k.exists self.valid = k.get('valid', False) self.executable = k.get('executable', False) k.assert_empty(k)
def get_changeset(cls, path, rev_or_txn, **kwds): k = DecayDict(**kwds) estream = k.get('estream', sys.stderr) ostream = k.get('ostream', sys.stdout) istream = k.get('istream', sys.stdout) c = ChangeSetCommand(ostream, estream) c.path = path c.conf = k.get('conf', Config()) c.options = k.get('options', Options()) c.rev_or_txn = rev_or_txn k.assert_empty(cls) with c: c.run() return c.result
def __init__(self, **kwds): k = DecayDict(**kwds) self.name = k.name self.exists = k.exists self.enabled = k.get('enabled', False) self.configured = k.get('configured', False) self.executable = k.get('executable', False) self.remote_debug = k.get('remote_debug', False) self.remote_debug_host = k.get('remote_debug_host', None) self.remote_debug_port = k.get('remote_debug_port', None) self.remote_debug_sessions = k.get('remote_debug_sessions', []) self.stale_remote_debug_sessions = \ k.get('stale_remote_debug_sessions', []) self.invalid_remote_debug_sessions = \ k.get('invalid_remote_debug_sessions', []) k.assert_empty(k)