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

def rabbitvcs::lib::vcs::svn::SVN::get_versioned_path (   self,
  path 
)

Generates a safe path to use with the prop* functions.
If the given path is unversioned, go to the next path up.

@type   path:   string
@param  path:   A file or directory path.

@rtype:         string
@return:        A prop* function-safe path.

Definition at line 732 of file __init__.py.

00732                                       :
        """
        Generates a safe path to use with the prop* functions.
        If the given path is unversioned, go to the next path up.

        @type   path:   string
        @param  path:   A file or directory path.
        
        @rtype:         string
        @return:        A prop* function-safe path.

        """

        path_to_check = path
        path_to_use = None
        while path_to_check != "/" and path_to_check != "":
            if self.is_versioned(path_to_check):
                path_to_use = path_to_check
                return path_to_use

            path_to_check = os.path.split(path_to_check)[0]

        return path_to_use

    def propset(self, path, prop_name, prop_value, overwrite=False, recurse=False):


Generated by  Doxygen 1.6.0   Back to index