path.svnurl API [rev. 57595]

class SvnCommandPath(SvnPathBase):

path implementation that offers access to (possibly remote) subversion repositories.

class attributes and properties:

basename: <property object (dynamically calculated value)>
ext: <property object (dynamically calculated value)>
purebasename: <property object (dynamically calculated value)>
sep: /
url: <property object (dynamically calculated value)>

methods:

def check(self, **kw):

check a path for existence, or query its properties without arguments, this returns True if the path exists (on the filesystem), False if not with (keyword only) arguments, the object compares the value of the argument with the value of a property with the same name (if it has one, else it raises a TypeError) when for example the keyword argument 'ext' is '.py', this will return True if self.ext == '.py', False otherwise

def common(self, other):

return the common part shared with the other path or None if there is no common part.

def copy(self, target, msg='copied by py lib invocation'):

copy path to target with checkin message msg.

def dirpath(self, *args, **kwargs):

return the directory path of the current path joined with any given path arguments.

def ensure(self, *args, **kwargs):

ensure that an args-joined path exists (by default as a file). If you specify a keyword argument 'dir=True' then the path is forced to be a directory path.

def export(self, topath):

export to a local path topath should not exist prior to calling this, returns a py.path.local instance

def info(self):

return an Info structure with svn-provided information.

def join(self, *args):

return a new Path (with the same revision) which is composed of the self Path followed by 'args' path components.

def listdir(self, fil=None, sort=None):

list directory contents, possibly filter by the given fil func and possibly sorted.

def load(self):

return object unpickled from self.read()

def log(self, rev_start=None, rev_end=1, verbose=False):

return a list of LogEntry instances for this path. rev_start is the starting revision (defaulting to the first one). rev_end is the last revision (defaulting to HEAD). if verbose is True, then the LogEntry instances also know which files changed.

def mkdir(self, *args, **kwargs):

create & return the directory joined with args. You can provide a checkin message by giving a keyword argument 'msg'

def move(self, target):

move this path to target.

def mtime(self):

Return the last modification time of the file.

def new(self, **kw):

create a modified version of this path. A 'rev' argument indicates a new revision. the following keyword arguments modify various path parts: http://host.com/repo/path/file.ext |-----------------------| dirname |------| basename |--| purebasename |--| ext

def open(self, mode='r'):

return an opened file with the given mode.

def parts(self, reverse=False):

return a root-first list of all ancestor directories plus the path itself.

def propget(self, name):

return the content of the given property.

def proplist(self):

list all property names.

def read(self, mode='rb'):

read and return a bytestring from reading the path.

def readlines(self, cr=