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

def rabbitvcs::lib::vcs::svn::SVN::revision (   self,
  kind,
  date = None,
  number = None 
)

Create a revision object usable by pysvn

@type   kind:   string
@param  kind:   An svn.REVISIONS keyword.

@type   date:   integer
@param  date:   Used for kind=date, in the form of UNIX TIMESTAMP (secs).

@type   number: integer
@param  number: Used for kind=number, specifies the revision number.

@rtype:         pysvn.Revision object
@return:        A pysvn.Revision object.

Definition at line 1080 of file __init__.py.

01080                                                     :
        """
        Create a revision object usable by pysvn
        
        @type   kind:   string
        @param  kind:   An svn.REVISIONS keyword.
        
        @type   date:   integer
        @param  date:   Used for kind=date, in the form of UNIX TIMESTAMP (secs).
        
        @type   number: integer
        @param  number: Used for kind=number, specifies the revision number.
        
        @rtype:         pysvn.Revision object
        @return:        A pysvn.Revision object.
        
        """
        
        # TODO: Don't use kwargs for date/number, just accept a "value" as a
        #       regular arg
        
        value = None
        if date:
            value = date
        elif number:
            value = number
        
        return Revision(kind, value)
        
    #
    # actions


Generated by  Doxygen 1.6.0   Back to index