Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
    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
Exemple #5
0
    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
Exemple #6
0
 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)
Exemple #7
0
    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
Exemple #8
0
    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
Exemple #9
0
    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)