Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • -u: Specify a URL from which to retrieve a manifest repository.
  • -m: Select a manifest file within the repository. If no manifest name is selected, the default is default.xml.

  • -b: Specify a revision, that is, a particular manifest-branch.


Panel

Example:

repo init -u https://user@code.rdkcentral.com/r/manifests


sync

Downloads new changes and updates the working files in your local environment, essentially accomplishing git fetch across all Git repositories.

...

Code Block
$ repo sync [project-list]

Options:

  • -c: Fetch only the current manifest branch from the server.

  • -d: Switch specified projects back to the manifest revision. This is helpful if the project is currently on a topic branch, but the manifest revision is temporarily needed.

  • -f: Proceed with syncing other projects even if a project fails to sync.

  • -j threadcount: Split the sync across threads for faster completion. Make sure not to overwhelm your machine by leaving some CPU reserved for other tasks. To see the number of available CPUs, first run: nproc --all
  • -q: Run quietly by suppressing status messages.

  • -s: Sync to a known good build as specified by the manifest-server element in the current manifest.


Panel

Example:

repo sync -j4 --no-clone-bundle


Upload

For the specified projects, Repo compares the local branches to the remote branches updated during the last Repo sync. Repo prompts you to select one or more of the branches that haven't been uploaded for review. 

...

  • -c: Command and arguments to execute. The command is evaluated through /bin/sh and any arguments after it are passed through as shell positional parameters.

  • -p: Show project headers before output of the specified command. This is achieved by binding pipes to the command's stdin, stdout, and sterr streams, and piping all output into a continuous stream that is displayed in a single pager session.

  • -v: Show messages the command writes to stderr.


Panel

Example: 

repo forall -c 'git push -u cmf branch-name'


start

Begins a new branch for development, starting from the revision specified in the manifest.

...

Code Block
$ repo status [project-list]