How to create a new private branch in P4 (perforce) from an existing one? - branch

I am using P4V. I need to create a new private branch from an existing project repository. How can i do this in P4V?
From a help file, I got the following steps:
Create a branch Specification for the files you want to keep in private branch
In P4 it could be done through File-->New-->Branch Specification
Create a new Workspace and in the workspace view specify the source as the private branch folders
Integrate the files using the branch specification from the new workspace
Right click on the root of the tree in the left side
Click the Integrage option and using branch specification tab integrate using the branch specification created in step1
Resolve and do the checkin
This will create new folders in the Depot also
Edit:
Step 1 done. Thanks to msKing
How to create a new workspace?

In P4v Branch Specification is named as 'Branch Mapping...'. You can also use Ctrl+3 to open the Branch Mappings tab. Right click in the tab and create the new BranchSpec.

Related

How to create a new file in dbt Cloud

I wanted to create a file on DBT cloud, but i do not have a button like on a video that suppose to be right when you hover over a folder to create a new file. Could someone please explain how to do it?enter image description here
I guess this happens because you are in the main branch (read only), if that's the case then you need to create a new branch first.

How to know the current CVS branch in intellij?

I have created a new CVS branch in Intellij, by doing :
Right Click in the parent project
CVS
Create branch
Enter branch name
Select Override existing and Switch to this branch
OK.
Everything is fine but there is no way I can verify that I am in the new branch I have created.
I want to commit to this new branch. How to make sure that I am commiting in the right branch ?
I mostly use git and I know in Intellij that you can see the current branch you are working on, but there is no such thing in CVS.
Thx for your reply
CVS root (branch) in use is shown under the Root Switches group in the Local changes tab.
There is also a request to add the branch information to the Commit dialog
https://youtrack.jetbrains.com/issue/IDEA-141642

Is It possible to change New Project creation level using WizardNewProjectCreationPage??

To create a New Project i am using WizardNewProjectCreationPage which creates a new project at root level.
Is it possible by any way to change that level.
For example there is already a root level folder in Project Explorer which contain some folders in it.Now i want when i right click on any of these folder and Add say New->Component.
On Component i have coded WizardNewProjectCreationPage,as i need the same functionality which ProjectCreationPage do .
But now i want this project should be added under the folder i right clicked and added component and so not on the root level.
No you can't do this. Eclipse projects can only be in the workspace root.
If you just want to create files and folders you can look at BasicNewFileResourceWizard, BasicNewFolderResourceWizard, WizardNewFileCreationPage and WizardNewFolderMainPage.

How to create a MC package in Pharo

How do I add an MC package on Pharo (version 3.0)?
Max's answer is correct, but you typically would not create an MC Package directly. Usually, you would create a package in the code browser. For example you could:
Accept a class definition specifying an unknown category
"Add Packageā€¦" from the package pane context menu
Implement an extension method in an extension protocol specifying an unknown package
In all these cases, a Pharo system package (specifically anRPackage) will be created, as well as an MC package of the same name.
If for some special reason you need to create just an MC package, following Max's instructions will accomplish that.
n.b. while Max's assertion that packages include sub-categories like MyPackage-Core is true in general, it is not true if there is a package that is a better match. So if there was a Pharo package MyPackage-Core, then it would hold all code categorized MyPackage-Core[-.], while MyPackage would hold all other MyPackage[-.]
Open the world menu by clicking into the empty world
Select Monticello Browser
Click on +Package in the upper left corner
enter the name of the package you want to version (must be equivalent to the package name you use to put your packages in)
Note on package names
- acts as a sub package separator, i.e. you can have multiple Monticello packages with the same prefix such as MyPackage-Core-Model, MyPackage-Core-View and MyPackage-Tests. If you create a Monticello package with the name MyPackage it will include all of the sub packages (i.e. all three of the above), if you name it MyPackage-Core it will contain the packages MyPackage-Core-Model and MyPackage-Core-View.
To add repositories to the package (to which it can be saved):
deselect any selected package in the Monticello browser by clicking on such a package
select a repository from the panel on the right
right click that entry
select Add to package... from the context menu
select the package from the dialog
If you don't have the repository you need yet, create it using the +Repository button at the top.

Intellij IDEA don't offer 'new Class' for creating

I have Maven project and when I want to create new class, it isn't in an offer. There is only new File. Also packages aren't available but instead of them, there are directories.
What I should turn on?
Edit:
I have IDEA 12, here is screenshots from different projects.
Project 1 - correct:
Project 2 - incorrect
New/Class and New/Package actions are only available within source roots. If you have a project folder selected, or some subfolder that is not within a src root, you won't be able to create classes there
Mark your directory as Source root and your problem is solved
Wrong. IntelliJ 12 does allow you create new classes. Under File->New you'll see Java Class, Package, all the usual suspects.
I don't see what Maven has to do with this at all.
If you set mark the folder as source root, the color is turned to be blue and now you can right click the folder to add your packages.
Click the link to see the snapshot.
http://i.stack.imgur.com/CTFS0.jpg