Support "repo init -b foo && repo sync" to switch baselines

We now correctly support re-initializing an existing client to point
to a different branch of the same manifest repository, effectively
allowing the client to switch the baseline it is operating on.

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce 2009-03-09 18:53:20 -07:00
parent 5470df6219
commit 521cd3ce67

View File

@ -126,6 +126,7 @@ default.xml will be used.
m.Sync_NetworkHalf()
m.Sync_LocalHalf()
if is_new:
m.StartBranch('default')
def _LinkManifest(self, name):