Example #1
0
	def setRootPath(self, pathname, auto_create = False):
		CavanCommandBase.setRootPath(self, pathname, auto_create)

		self.mPathSvnRepo = self.getAbsPath(self.mGitSvnRepoName)
		if auto_create and not os.path.isdir(self.mPathSvnRepo):
			self.mkdirSafe(self.mPathSvnRepo)

		self.mPathProjects = os.path.join(self.mPathSvnRepo, "projects")
		if auto_create and not self.mPathProjects:
			self.mkdirSafe(self.mPathProjects)

		self.mFileManifest = os.path.join(self.mPathSvnRepo, "manifest.xml")
		if not os.path.exists(self.mFileManifest):
			pathname = self.getAbsPath(".repo")
			if os.path.exists(pathname):
				self.mPathSvnRepo = pathname
				pathname = os.path.join(pathname, "manifest.xml")
				if os.path.exists(pathname):
					self.mFileManifest = pathname

		self.mFileFailed = os.path.join(self.mPathSvnRepo, "failed.txt")

		self.mPathPlatform = os.path.join(self.mPathProjects, "platform")
		if auto_create and not os.path.isdir(self.mPathPlatform):
			self.mkdirSafe(self.mPathPlatform)

		self.mPathManifestRepo = os.path.join(self.mPathPlatform, "manifest.git")
		self.mPathFileRepo = os.path.join(self.mPathPlatform, "copyfile.git")
		self.mPathManifests = os.path.join(self.mPathSvnRepo, "manifests")
Example #2
0
    def setRootPath(self, pathname, auto_create=False):
        CavanCommandBase.setRootPath(self, pathname, auto_create)

        if self.mBare:
            self.mPathGitRepo = self.mPathRoot
        else:
            self.mPathGitRepo = self.getAbsPath(self.mGitRepoName)
            self.mPathPatch = os.path.join(self.mPathGitRepo, "cavan-patch")
            if auto_create and not os.path.isdir(self.mPathPatch):
                self.mkdirSafe(self.mPathPatch)

        self.mFileExclude = os.path.join(self.mPathGitRepo, "info/exclude")
Example #3
0
	def setRootPath(self, pathname, auto_create = False):
		CavanCommandBase.setRootPath(self, pathname, auto_create)

		if self.mBare:
			self.mPathGitRepo = self.mPathRoot
		else:
			self.mPathGitRepo = self.getAbsPath(self.mGitRepoName)
			self.mPathPatch = os.path.join(self.mPathGitRepo, "cavan-patch")
			if auto_create and not os.path.isdir(self.mPathPatch):
				self.mkdirSafe(self.mPathPatch)

		self.mFileExclude = os.path.join(self.mPathGitRepo, "info/exclude")