Package moap :: Package vcs :: Module svn :: Class SVN
[hide private]
[frames] | no frames]

Class SVN

source code

extern.log.log.Loggable --+    
                          |    
                    vcs.VCS --+
                              |
                             SVN

Instance Methods [hide private]
 
_getByStatus(self, path, status) source code
list of str
getAdded(self, path)
Get a list of paths newly added under the given path and relative to it.
source code
list of str
getDeleted(self, path)
Get a list of deleted paths under the given path and relative to it.
source code
list of str
getIgnored(self, path)
Get a list of ignored paths under the given path and relative to it.
source code
list of str
getUnknown(self, path)
Get a list of unknown paths under the given path and relative to it.
source code
 
ignore(self, paths, commit=True)
Make the VCS ignore the given list of paths.
source code
bool
commit(self, paths, message)
Commit the given list of paths, with the given message.
source code
str
diff(self, path)
Return a diff for the given path.
source code
 
scrubPropertyChanges(self, output)
Scrub the given diff output from property changes.
source code
dict of str -> list of str
getPropertyChanges(self, path)
Get a list of property changes for the given path and subpaths.
source code
 
update(self, path)
Update the given path to the latest version.
source code
str
getCheckoutCommands(self)
Return shell commands necessary to do a fresh checkout of the current checkout into a directory called 'checkout'.
source code

Inherited from vcs.VCS: __init__, backup, createTree, diffCheckout, getChanges, getFileMatcher, restore

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  name = 'Subversion'
list of str meta = ['.svn']
paths that contain VCS metadata

Inherited from vcs.VCS: logCategory

Instance Variables [hide private]

Inherited from vcs.VCS: path

Method Details [hide private]

_getByStatus(self, path, status)

source code 
Parameters:
  • status - one character indicating the status we want to get all paths for.

getAdded(self, path)

source code 

Get a list of paths newly added under the given path and relative to it.

Parameters:
  • path - the path under which to check for files
Returns: list of str
list of paths
Overrides: vcs.VCS.getAdded
(inherited documentation)

getDeleted(self, path)

source code 

Get a list of deleted paths under the given path and relative to it.

Parameters:
  • path - the path under which to check for files
Returns: list of str
list of paths
Overrides: vcs.VCS.getDeleted
(inherited documentation)

getIgnored(self, path)

source code 

Get a list of ignored paths under the given path and relative to it.

Parameters:
  • path - the path under which to check for files
Returns: list of str
list of paths
Overrides: vcs.VCS.getIgnored
(inherited documentation)

getUnknown(self, path)

source code 

Get a list of unknown paths under the given path and relative to it.

Parameters:
  • path - the path under which to check for files
Returns: list of str
list of paths
Overrides: vcs.VCS.getUnknown
(inherited documentation)

ignore(self, paths, commit=True)

source code 

Make the VCS ignore the given list of paths.

Parameters:
  • paths - list of paths, relative to the checkout directory
  • commit - if True, commit the ignore updates.
Overrides: vcs.VCS.ignore
(inherited documentation)

commit(self, paths, message)

source code 

Commit the given list of paths, with the given message. Note that depending on the VCS, parents that were just added may need to be commited as well.

Returns: bool
Overrides: vcs.VCS.commit
(inherited documentation)

diff(self, path)

source code 

Return a diff for the given path.

The diff should not end in a newline; an empty diff should be an empty string.

The diff should also be relative to the working directory; no absolute paths.

Returns: str
the diff
Overrides: vcs.VCS.diff
(inherited documentation)

getPropertyChanges(self, path)

source code 

Get a list of property changes for the given path and subpaths. These are metadata changes to files, not content changes.

Returns: dict of str -> list of str
dict of path -> list of property names
Overrides: vcs.VCS.getPropertyChanges
(inherited documentation)

update(self, path)

source code 

Update the given path to the latest version.

Overrides: vcs.VCS.update
(inherited documentation)

getCheckoutCommands(self)

source code 

Return shell commands necessary to do a fresh checkout of the current checkout into a directory called 'checkout'.

Returns: str
newline-terminated string of commands.
Overrides: vcs.VCS.getCheckoutCommands
(inherited documentation)