Public Member Functions | |
def | __init__ |
def | __call__ |
Static Public Attributes | |
tuple | cmd = property(__cmd ) |
tuple | msg = property(lambda self:self(cmd="log") ) |
tuple | author = property(lambda self:self(cmd="author").rstrip() ) |
tuple | changed = property(_changed ) |
tuple | diff = property(lambda self:self(cmd="diff") ) |
Private Member Functions | |
def | __cmd |
def | _changed |
Static Private Attributes | |
string | _cmd = "%(sudo)s%(exepath)s %(cmd)s %(repo_path)s " |
string | _cmdt = " --transaction %(txn_name)s " |
string | _cmdr = " --revision %(revision)s " |
Definition at line 94 of file svndiff.py.
def DybPython::svndiff::SVNLook::__cmd | ( | self | ) | [private] |
Definition at line 98 of file svndiff.py.
00098 : 00099 if self.get('txn_name',None): 00100 return self._cmdt % self 00101 elif self.get('revision',None): 00102 return self._cmdr % self 00103 else: 00104 return None cmd = property(__cmd )
def DybPython::svndiff::SVNLook::_changed | ( | self | ) | [private] |
Definition at line 109 of file svndiff.py.
00109 : 00110 """ 00111 List of full repository paths changed in the txn or commit 00112 00113 """ 00114 d = [] 00115 for line in self(cmd="changed").rstrip().split("\n"): 00116 ele = line.split() 00117 assert len(ele) == 2 , "SVNLook._changed unexpected ele %r " % ele 00118 #print "[%s][%s]" % ( ele[0], ele[1] ) 00119 path = ele[1] 00120 if path[0]=='/': path = path[1:]
def DybPython::svndiff::SVNLook::__init__ | ( | self, | ||
args, | ||||
kwargs | ||||
) |
Reimplemented from DybPython::svndiff::Cmd.
Definition at line 122 of file svndiff.py.
00125 : 00126 Cmd.__init__(self, *args, **kwargs ) 00127 self.update( exepath=os.environ.get("SVNLOOK", "svnlook"), sudo=kwargs.get("sudo",""), cmd="to_be_set" ) assert os.path.isdir( os.path.join( self['repo_path'], "hooks" )), "Directory %s is not an SVN repository " % path
def DybPython::svndiff::Cmd::__call__ | ( | self, | ||
args, | ||||
kwargs | ||||
) | [inherited] |
string DybPython::svndiff::SVNLook::_cmd = "%(sudo)s%(exepath)s %(cmd)s %(repo_path)s " [static, private] |
Definition at line 95 of file svndiff.py.
string DybPython::svndiff::SVNLook::_cmdt = " --transaction %(txn_name)s " [static, private] |
Definition at line 96 of file svndiff.py.
string DybPython::svndiff::SVNLook::_cmdr = " --revision %(revision)s " [static, private] |
Definition at line 97 of file svndiff.py.
tuple DybPython::svndiff::SVNLook::cmd = property(__cmd ) [static] |
tuple DybPython::svndiff::SVNLook::msg = property(lambda self:self(cmd="log") ) [static] |
Definition at line 106 of file svndiff.py.
tuple DybPython::svndiff::SVNLook::author = property(lambda self:self(cmd="author").rstrip() ) [static] |
Definition at line 107 of file svndiff.py.
tuple DybPython::svndiff::SVNLook::changed = property(_changed ) [static] |
Definition at line 121 of file svndiff.py.
tuple DybPython::svndiff::Cmd::diff = property(lambda self:self(cmd="diff") ) [static, inherited] |
Definition at line 33 of file svndiff.py.