Lines Matching full:checkout
60 """Get the root of your repo managed checkout."""
69 """Tests to see if a directory is the root of a git submodule checkout.
90 pwd: Directory to probe. If a checkout, should be the root.
97 # Is this directory a bare repo with no checkout?
259 """Attributes of a given project in the manifest checkout.
268 attrs: The attributes associated with this checkout, as a dictionary.
313 """Get the path to the checkout.
403 checkout = self.checkouts_by_name.setdefault(self._current_project_name,
405 checkout.append(attrs)
434 for checkout in self.checkouts_by_name[self._current_project_name]:
435 checkout.update(self._annotations)
464 # repo checkout from a revlocked manifest, the 'upstream' attribute will
547 """A Manifest Handler for a specific manifest checkout."""
555 path: Path into a manifest checkout (doesn't have to be the root).
557 in the root of the checkout is used. May be a seekable file handle.
593 """Returns True iff the given checkout is using a full manifest.
598 checkout_root: path to the root of an SDK checkout.
626 for checkout in self.checkouts_by_name.get(project, []):
627 tracking_branch = checkout['tracking_branch']
629 checkouts.append(checkout)
633 """Returns the checkout associated with a given project/branch.
638 strict: Raise AssertionError if a checkout cannot be found.
644 AssertionError if there is more than one checkout associated with the
650 raise AssertionError('Could not find checkout of %s' % (project,))
670 checkout, return None.
674 strict: If True, fail when no checkout is found.
677 None if no checkout is found, else the checkout.
686 for checkout in self.ListCheckouts():
687 if path.startswith(checkout['local_path'] + '/'):
688 candidates.append((checkout['path'], checkout))
695 # The checkout with the greatest common path prefix is the owner of
749 path: The pathway into a checkout; the root will be found automatically.
851 osutils.WriteFile(os.path.join(git_repo, '.git/info/sparse-checkout'),
853 logging.info('Sparse checkout: %s', sparse_checkout)
1030 checkout = manifest.FindCheckoutFromPath(git_repo, strict=False)
1032 if checkout is None:
1036 checkout.AssertPushable()
1039 remote = checkout['push_remote']
1041 remote = checkout['remote']
1044 revision = checkout['tracking_branch']
1046 revision = checkout['revision']
1050 project_name = checkout.get('name', None)
1120 cmd = ['checkout', '-B', branch, branch_point]
1174 RunGit(git_repo, ['checkout', rev, '--', filename])
1380 RunGit(git_repo, ['checkout', '-B', branch, '-t', remote_push_branch.ref])
1475 """Remove all local changes and checkout a detached head.
1483 RunGit(git_repo, ['checkout', '--detach', '-f', 'HEAD'])
1487 """Remove all local changes and checkout the latest origin.
1500 RunGit(git_repo, ['checkout', remote_ref.ref])
1518 # Ensure the manifest knows of this checkout.
1525 # Not a manifest checkout.
1527 "Chromite checkout at %s isn't controlled by repo, nor is it on a "
1529 'Falling back to assuming the chromite checkout is derived from '