Repo sync with manifest download old version code

Source: Internet
Author: User
Tags diff

Sometimes in order to reproduce the problem, we need to package the code in the Code warehouse the previous few days


Put the manifest file that was packaged for the day into the. repo/manifests/inside of any set of code, assuming this file is named Pre_version.xml
And then execute
Repo Init-m Pre_version.xml
Next we use the order
LL. repo/manifest.xml
Look at the Manifset in the package and see that it's already linked to the pre_version.xml we made


The last time you synchronize code, you can overwrite code that already exists for security
Repo SYNC-CDF--force-sync

The meaning of options such as CDF:

$ repo Help Sync

-C,--current-branch fetch only the current branch from server

-D,--detach detach projects back to manifest revision

-F,--force-broken continue sync even if a project fails to sync

--force-sync overwrite an existing git directory if it needs to
Point to a different object directory. Warning:this
May cause loss of data


Repo Sync's-C parameter downloads only the current branch, speeds up code downloads, and saves hard disk space


The Help form for the Ps:repo command is Repo command [ARGS]

$ repo Help
Usage:repo COMMAND [ARGS]
The most commonly used repo commands are:
Abandon permanently abandon a development branch
Branch View Current Topic branches
Branches View Current topic branches
Checkout checkout a branch for development
Cherry-pick Cherry-pick a change.
Diff show changes between commits and working tree
Diffmanifests Manifest diff Utility
Download Download and checkout a change
grep Print lines matching a pattern
Info Get info on the manifest branch, current branch or unmerged branches
Init Initialize repo in the current directory
List List projects and their associated directories
Overview Display Overview of unmerged project branches
Prune prune (delete) already merged topics
Rebase rebase Local branches on upstream branch
Smartsync Update working tree to the latest known good revision
Stage stage file (s) for commit
Start start a new branch for development
Status show the working tree status
Sync Update working tree to the latest revision
Upload upload changes for code review
"Repo help <command>" for the more information on a specific command.
"Repo help--all" for a complete list of recognized commands.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.