def __init__( self, name = None ): SourceCodeProvider.__init__( self, name ) searchPaths = [] if sys.platform == "win32": keys = [ "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion" + "\\Uninstall\\CollabNet Subversion Client\\UninstallString" ] searchPaths += getPathsFromRegistry( keys, ".." ) self._setCommand( "svn" ) self._setCommandSearchPaths( searchPaths ) self.__revisionInfoCache = {} # key: revision, value: RevisionInfo instance self.__rootTrunk = False
def getUrl( self ): # TODO Work out sensible ordering here or fail if we have more than one of these parameters url = SourceCodeProvider.getUrl( self ) if self.getTag(): return url + '/tags/' + self.getTag() elif self.getBranch(): return url + '/branches/' + self.getBranch() elif not self.rootIsTrunk(): return url + '/trunk' return url
def __init__( self, name = None ): SourceCodeProvider.__init__( self, name )