What is "upstream" attribute in manifest files is used for??

1,381 views
Skip to first unread message

mj

unread,
Mar 6, 2014, 11:22:56 PM3/6/14
to repo-d...@googlegroups.com
recently i saw "upstream" attribute instead of "revision" in one of the manifest file, can someone tell me what it is used for?? How it is different from "revision". 

David Pursehouse

unread,
Mar 7, 2014, 12:14:44 AM3/7/14
to mj, repo-discuss
The "upstream" attribute is only used when the project also has a "revision" attribute and the revision is a sha1.

Please refer to the description in docs/manifest_format.txt in the git-repo project:

    Attribute `upstream`: Name of the Git branch in which a sha1
    can be found.  Used when syncing a revision locked manifest in
    -c mode to avoid having to sync the entire ref space.

mj

unread,
Mar 7, 2014, 8:00:32 AM3/7/14
to repo-d...@googlegroups.com, mj
Thanks David. Got it.
Message has been deleted

JK Kim

unread,
Jul 10, 2023, 2:20:56 AM7/10/23
to Repo and Gerrit Discussion
Any correct usage for attribute "upstream"?  and "dest-branch" ?

ex) Provided that upstream attribute is set in manifests below.
<project name="sample_yocto/meta-browser" path="poky/meta-browser" upstream="branch_a"/>

I can use this command. is it right?
repo forall -c 'git push origin ${REPO_UPSTREAM}'

Reply all
Reply to author
Forward
0 new messages