Jump to content


DVCS push local branch

dvcs

  • Please log in to reply
No replies to this topic

#1 larryzzl

larryzzl

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 25 September 2015 - 08:22 AM

Hi, I have been trying DVCS recently. I have 2 questions and I'd appreciate if any feedback could be provided.

Pre-condition:
I created a remote repo with the following depot map:
//stream/main/...  //remoteStream/main/...
//stream/qa/...  //remoteStream/qa/...
Please note "remoteStream" is a Stream depot on the P4 server.

I created a local folder and P4 clone the remote repo to that folder. I switched to qa branch by calling "p4 switch qa".

#1, I created a local branch by using "p4 switch -c dev". I edited the local repo by calling "p4 switch origin" and edited the depot map to:
//stream/main/...  //remoteStream/main/...
//stream/qa/...  //remoteStream/qa/...
//stream/dev/...  //remoteStream/dev/...
I called "p4 push" and find the "dev" folder is now visible in P4V under "remoteStream" depot.
But if I click "work in this stream" on that folder, P4V tells me it cannot find this stream. I cannot find it in the Stream Graph either. How can I make the branch pushed from local server workable in remote server so I can see the "dev" is branched from "qa" in P4V?

#2, Some one created a new stream from //remoteStream//qa, say //remoteStream//dev-zz, I want to sync it to my local in the same folder so if I call "p4 switch -l", I can see 3 branches on local. How can I do it?

Thanks.





Also tagged with one or more of these keywords: dvcs

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users