+91 700 483 5930   +91 810 584 3520    info@scmgalaxy.com
LOGIN
Sign In or Register
Avatar
Not Registered Yet?

Join Now! It's FREE. Get full access and benefit from this site

Reset My password - Remind Me My username

Username
Password
Remember me
 
scmGalaxy logo
× Perforce

Find perforce Label info from Workspace

  • scmuser
  • scmuser's Avatar Topic Author
  • Visitor
  • Visitor
7 years 1 month ago #323 by scmuser
scmuser created the topic: Find perforce Label info from Workspace
Hi,

I have perforce workspace which is synced with p4 label specification. i want to know which label has been sync here in my workspace.

Could you please let me know the command for this?

Please Log in to join the conversation.

More
7 years 1 month ago #325 by mnanjala
mnanjala replied the topic: Re:Find perforce Label info from Workspace
It's not easy, especially when you consider that the workspace might be only partly synced to that label. i.e, the label was used with a more restrictive path than that in the label itself.

One rather crude method is to take each label that might apply to the workspace (you can determine this by the view in the labels, or if you use a meaningful naming convention) and do a test sync (p4 sync -n) of each one in the workspace. With luck, only one of them will show zero actions. However, it's possible that more than one will seem correct, or that none of them will.Essentially, you're trying to access label information backwards.
They are aliases for a particular state of the repository, but are not a state in and of themselves. (I.e., "synced to which label" isn't really meaningful in Perforce.)

If you need to duplicate the state of a workspace into another workspace, are you aware that workspace names are also labels?
You can sync one workspace to the same state as another by using the other workspace's name. (Assuming the views are compatible.)

Please Log in to join the conversation.

Time to create page: 0.429 seconds
Powered by Kunena Forum



   Learning is more effective
             when it's with us




Hear Words Straight From Our Clients About scmGalaxy

A few Words From Our Clients

Kshitiij Gupta

The training with scmGalaxy was a good experience. Rajesh was very helping and clear with concepts. The only suggestion is to improve the course content.

Kshitiij Gupta, Bangalore
Rohit

Rajesh is very good trainer. Rajesh was able to resolve our queries and question effectively. We really liked the hands-on examples covered during this training program.

Indrayani, India

Abhinav Gupta

The training was very useful and interactive. Rajesh helped develop the confidence of all individuals by using hands on activities to bring out the best in each participant.

Abhinav Gupta, Sr. Principal Infrastructure Engg at Mphasis, PUNE
Ravi Daur

Good training session about basic Devops concepts. Working session were also good, however proper query resolution was sometimes missed, maybe due to time constraint.

Ravi Daur , Noida

vinaya kumar

Thanks Rajesh, Training was good, Appreciate the knowledge you poses and displayed in the training.

vinayakumar, Project Manager, Bangalore
Dilli babu


Training is superb and learned a lot about many tools related to DevOps.

Dillibabu , Bangalore

Sumit Kulkarni

Very well organized training, helped a lot to understand the DevOps concept and detailed related to various tools.Very helpful

Sumit Kulkarni Software Engineer
Satish T Jadhav

Sessions were too extensive and helped a lot in understanding the concepts which would help in actual implementation.Rajesh has in-depth knowledge and provided clarification to almost all the queries.

Satish T Jadhav, Engineer

NEW TUTORIALS