def __init__(self, **kwds): k = DecayDict(**kwds) object.__init__(self) for name in self._names: value = getattr(self.__class__, name).__class__(getattr(k, name)) setattr(self, name, value) k.assert_empty(k)
def __init__(self, **kwds): k = DecayDict(**kwds) self.name = k.name self.path = k.path self.hook_dir = k.hook_dir self.hook_files = k.hook_files self.evn_hook_file = k.evn_hook_file k.assert_empty(k)
def find_merges(cls, path, revision, **kwds): k = DecayDict(**kwds) estream = kwds.get('estream', sys.stderr) ostream = kwds.get('ostream', sys.stdout) istream = kwds.get('istream', sys.stdout) c = FindMergesCommand(istream, ostream, estream) c.revision = revision c.path = path c.conf = kwds.get('conf', Config()) c.options = kwds.get('options', Options()) k.assert_empty(cls) c.yield_values = True with c: c.run() return c
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)