def openRemote(self,username): rr=RemoteRepo(self._iface,username) repo=rr.select_repo() dir = util.select('dir','E:/Python/apps/simon816/GithubMobile') if not dir:return conf=self.create_repository(dir, **repo) self.openRepo(dir,conf)
def open_repo(self,loc=None): if not loc:loc=util.select('dir',self.homedir+'REPOS') if not loc:return if self._repoMgr.is_repo(loc): conf=config() conf.open(loc+'.git\\config','') self._config.add_recent(conf.get_key_data('info','name'),loc) self._repoMgr.openRepo(loc,conf) conf.close() else: self._iface.error('Not a valid repositiory')
def new_repo(self): name=self._iface.prompt('Name for repository') dir=util.select('dir',self.homedir) conf=self._repoMgr.create_repository(dir,name=name) self._config.add_recent(name,dir) self._repoMgr.openRepo(dir,conf)