Lines Matching full:repo

47     This class represents a git repo.
49 It is used to pull down a local copy of a git repo, check if the local
50 repo is up-to-date, if not update. It delegates the install to
58 @param repodir: destination repo directory.
59 @param giturl: master repo git url.
60 @param weburl: a web url for the master repo.
61 @param abs_work_tree: work tree of the git repo. In the
163 Clones a repo using giturl and repodir.
165 Since we're cloning the master repo we don't have a work tree yet,
173 @raises GitCloneError: if cloning the master repo fails.
175 logging.info('Cloning git repo %s', self.giturl)
202 logging.info('Updating git repo %s', self.giturl)
211 e_msg = 'Failed to pull git repo data'
217 Commit changes to repo with the supplied commit msg.
273 Reset repo to the given branch or git sha.
286 Reset repo to HEAD@{0} by running git reset --hard HEAD.
292 logging.info('Resetting head on repo %s', self.repodir)
306 logging.info('fetching from repo %s', self.giturl)
316 Does all it can to ensure that the repo is at remote_branch.
320 everything so that local repo reflects the upstream branch requested.
345 # Don't trust the existing repo setup at all (so don't trust the current
364 this method will leave an up-to-date version of git repo at
374 # exiting repo, check if we're up-to-date
377 logging.info('repo up-to-date')
425 Return whether the git repo was already initialized.
428 repo is empty. Assumes non-bare reposotories like the rest of this file.
430 @return: True if the repo is initialized.
442 Get the commit hash of the latest commit in the repo.
461 eg: we clone an empty master repo, then don't pull
464 @return True if the repo has no commits.
544 Return the current status of the git repo.