예제 #1
0
파일: hook.py 프로젝트: smapjb/enversion
 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)
예제 #2
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
예제 #3
0
파일: commands.py 프로젝트: tpn/enversion
    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
예제 #4
0
파일: hook.py 프로젝트: smapjb/enversion
    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)