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

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

Retrieve the repository URL for the given working copy path

@type   path:   string
@param  path:   A working copy path.

@rtype:         string
@return:        A repository URL.

Definition at line 619 of file __init__.py.

00619                                 :
        """
        Retrieve the repository URL for the given working copy path
        
        @type   path:   string
        @param  path:   A working copy path.
        
        @rtype:         string
        @return:        A repository URL.
        
        """
        
        # If the given path is a URL, the user is passing a repository url
        # In that case we already have the url
        if self.is_path_repository_url(path):
            return path

        # If the given path is not part of a working copy, keep trying the
        # parent path to see if it is part of a working copy
        path = self.get_versioned_path(os.path.abspath(path))
        if not path:
            return ""

        info = self.client.info(path)
        returner = ""
        try:
            returner = info["url"]
        except Exception, e:
            log.exception(e)

        return returner
    
    def get_repo_root_url(self, path):


Generated by  Doxygen 1.6.0   Back to index