Hi Peng!
I'm not sure of the consequences when doing this, but I know of several people in my $DAYJOB that just reruns repo init with the new branch.
I would however rather recommend you to setup a reference directory [1] and then initiate two workspaces with one branch each from there instead.
[1] Explained for instance here: http://www.excentral.org/archives/2011/02/24/android-repo-mirroring
you can rerun repo init with the --reference switch in any number of work spaces, it will reuse the mirror directory for each of them. Ultimately you might want to setup a repo sync job in your crontab to keep the mirror up to date when you run repo sync in your workspaces.. saves you even more time. J
--
Best regards,
Fredrik Luthander
Sony Ericsson Mobile Communications AB
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
> I init my repo by "repo init -u ... -b froyo-x86 and repo sync", then
> what to do if I want the switch the manifest to "gingerbread-x86" ?
Easiest way:
repo init -b gingerbread-x86
You can certainly set up multiple workspaces as Fredrik suggests, but if
you're abandoning froyo-x86 for good there might be little point in that.
[...]
--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson