示例#1
0
	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
示例#2
0
	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
示例#3
0
	def __init__( self, name = None ):
		SourceCodeProvider.__init__( self, name )