perforce

hg convert not actually converting?

空扰寡人 提交于 2019-12-11 08:35:49
问题 I run the following hg command and see a whole bunch of revision numbers & their messages fly past my screen, but when it finishes the destination hg repository is empty. hg convert -s p4 //depot/proj1/... c:\hg\proj1 --config convert.p4.startrev=1267 What am I doing wrong? 回答1: When in doubt, use the summary command . You'll probably see something like this: $ hg sum parent: -1:000000000000 (no revision checked out) branch: default commit: (clean) update: 15225 new changesets (update) This

How to push & merge specific commit history?

杀马特。学长 韩版系。学妹 提交于 2019-12-11 07:44:35
问题 I cloned a Repo from Perfoce into Git locally with all its history, call it SubProj , and then I pushed it to a remote repo, and used that remote repo to merge SubProj under a SuperProj . There is no way to import part of the history from Perforce to Git, either @all or none . Anyway, It went fine and I deleted the local repo, and its remote. Now, there are changes on the Perforce depot SubProj , so I cloned SubProj again with all the history, I want to push then merge with SuperProj but I do

Submit a change for review in swarm command line using perforce

拜拜、爱过 提交于 2019-12-11 07:25:18
问题 I created a client using the p4 client and got the latest code. Then I did p4 edit to edit files. I then, created a change list with my modified files using the command p4 change . Now, I would like to submit my code changes for review before committing them. I believe our perforce is integrated with swarm. Now, how do I submit these code changes using the command line? I tried p4 help. It does not have any clue. On a side note (irrelevant to the question): I damn hate perforce. Their

Perforce Api - How to command “get revision [changelist number]”

会有一股神秘感。 提交于 2019-12-11 07:18:50
问题 I would like to implement the Perforce command "Get Revision [Changelist Number]" using the Perforce .NET API (C#). I currently have code that will "Get Latest Revision", but I need to modify it to get a specific changelist. To sync the data with a changelist number, what should I do? Source // --------Connenct---------------- Perforce.P4.Server server = new Perforce.P4.Server( new Perforce.P4.ServerAddress("127.0.0.1:9999")); Perforce.P4.Repository rep = new Perforce.P4.Repository(server);

How to perform p4 submit operation without passing description inside the p4 submit form

风格不统一 提交于 2019-12-11 06:22:49
问题 I have a p4 client workspace on Linux machine. I added/edited few files in my client space and then tried to submit those changes to perforce server. I followed the steps below but could not succeed: p4 submit -d "test" (the same command works on a Windows machine) when I tried it with just p4 submit then it opened a p4 submit form and then I replaced [enter description here] token with the proper description and then it works. But I don't want to edit the p4 submit form for every p4 submit

How do I find the creator of a Perforce changelist?

眉间皱痕 提交于 2019-12-11 06:08:43
问题 I have two Perforce users A and B. A creates a numbered changelist 4711 and assigns this changelist to B with the command: p4 change -U B 4711 User B can now verify that he owns changelist 4711 by calling: p4 describe -s 4711 Is there any way for user B to find out that this changelist was created by A? Regards Lars 回答1: Not via any Perforce client commands, no. This information isn't versioned in the metadata or the spec depot. Options for the admin include: Putting a trigger in place that

How to rename a file test.c to Test.c in perforce?

房东的猫 提交于 2019-12-11 05:07:20
问题 I have a file of name: test.c in perforce, but i want it as Test.c (capital T). I tried rename, delete and then add but both methods are not useful! The file gets update in my machine, but when some one else accesses it, the file remains, test.c itself, not Test.c! What can i do in this case? And i have many files of same name inside the directory in perforce, i want to rename them all. Ex: dir1->test.c , dir2 dir2 ->test.c , dir3 dir3->test.c This should become: dir1->Test.c , dir2 dir2 -

Replace working copy of git repo with actual contents of repo in .git?

こ雲淡風輕ζ 提交于 2019-12-11 04:28:40
问题 TLDR What is the git command to force the contents of the working copy to be what's actually in the repo in the .git subfolder? (In the event that changes are pushed from another machine to a remote repo that has a working copy) LONG STORY I would like my team within my company, which uses perforce, to move to git. I want to use Git-P4 to achieve that. I want to have a section of perforce cloned to a git repo, and make that a remote repo, so that people would clone that, push changes to the

'ClientFilter' validation failed: client view is too loose . each client should include one project only

流过昼夜 提交于 2019-12-11 03:42:27
问题 I am trying to do same operations that I do with perforce GUI using command line. When I tried to do p4 edit on any file, it said Client '<host-name>' unknown - use 'client' command to create it. So, I tried p4 client -o <my-workspace-name> | p4 client -i but this returned: Error in client specification. 'ClientFilter' validation failed: ====================================================== client view is too loose !!! each client should include one project only =============================

How to configure maven-release to use Perforce as SCM provider?

…衆ロ難τιáo~ 提交于 2019-12-11 02:59:58
问题 I am trying to use the maven release plugin to create a released version of a Java project having Perforce as the SCM. My pom scm section is: <scm> <connection>scm:p4:myperforcehostname:1666://mydepot/mycomponent</connection> <developerConnection>scm:p4:myperforcehostname:1666://mydepot/mycomponent</developerConnection> <url>http://myperforcehostname:1666</url> </scm> Also I use the P4Maven plugin and the Maven Release Plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId