分类: 项目管理
2012-09-24 11:28:04
Nope. You are misunderstanding how "repo upload" works.
You don't upload single changes. You upload an entire branch.
If you do this sequence of actions:
repo start foo .
git commit -a -m A
repo upload
...
git commit -a -m B
repo upload
You'll be prompted to upload both A and B, but you are still on the same
branch, foo. Upload the branch anyway. Gerrit sorts out duplicates and will
only create a new change for B. Unless you've amended A, in which case it
will also make a new A, because the SHA-1 hash doesn't match to an existing
change in that project.
Under Gerrit2 the upload will be more efficient, as the data for A won't
have to be sent up to Gerrit. Under Gerrit1 the data for A is sent anyway,
even though its unnecessary.
> I have made a change in one project, repo uploaded it, and I've now
> made a second change in the same branch (the second one logically
> follows the first one).
> repo upload doesn't give me the option of picking only the second
> change for upload, as I don't have any change in any other projects. I
> only have a yes/no prompt.
> Obviously, there's an easy workaround (create a throwaway commit in
> some other unrelated project, and repo upload will show me the "full"
> UI in which I can choose individual changes), but I figured I'd
> mention this.
> JBQ
> --
> Jean-Baptiste M. "JBQ" Queru
> Android Engineer, Google.
------------------------------------
repo sync [project name] repo 一个子project的git仓库.
check the status of repo
----------------------
Check a below list. 1) check your network status in your office or home. for example, type "#> tcpdump dst host your_ip_address". 2) remove ./.*** directory , and then retry --------------------------------------------- refs/changes/${change_id % 100}/${change_id} 这个gerrit上面的changeid 可是为什么要changeid%100 真的是不知道做社么,可能跟object一样是用来做索引的。 |