Logo Search packages:      
Sourcecode: rabbitvcs version File versions  Download package

def rabbitvcs::lib::vcs::svn::SVN::commit (   self,
  paths,
  log_message = "",
  recurse = False,
  keep_locks = False 
)

Commit a list of files to the repository.

@type   paths: list
@param  paths: A list of files/directories.

@type   log_message: string
@param  log_message: A commit log message.

@type   recurse: boolean
@param  recurse: Whether or not to recurse into sub-directories.

@type   keep_locks: boolean
@param  keep_locks: Whether or not to keep locks on commit.

Definition at line 1245 of file __init__.py.

01245                                                                             :
        """
        Commit a list of files to the repository.
        
        @type   paths: list
        @param  paths: A list of files/directories.
        
        @type   log_message: string
        @param  log_message: A commit log message.
        
        @type   recurse: boolean
        @param  recurse: Whether or not to recurse into sub-directories.
        
        @type   keep_locks: boolean
        @param  keep_locks: Whether or not to keep locks on commit.
        
        """

        kwargs = {"keep_locks": keep_locks}
        try:
            # Simply setting recurse=False will not stop child files from getting
            # committed.  The pysvn.depth kwarg must be set to empty.
            # Unfortunately, older pysvn/svn installations do not have the depth
            # enum so for those, recurse must be used.
            kwargs["depth"] = (recurse and pysvn.depth.infinity or pysvn.depth.empty)
        except AttributeError:
            kwargs["recurse"] = recurse
        
        retval = self.client.checkin(paths, log_message, **kwargs)
        dummy_commit_dict = {
            "revision": retval,
            "action": rabbitvcs.lib.vcs.svn.commit_completed
            }
        self.client.callback_notify(dummy_commit_dict)
        return retval
    
    def log(self, url_or_path, revision_start=Revision("head"), 


Generated by  Doxygen 1.6.0   Back to index