Questions tagged [perforce]

Perforce is a commercial, proprietary, centralized revision control system.

perforce
616 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
1 answer
166 views

Creating Label for the application code in TFS using Nant script

Recently I migrated my code from Perforce to TFS. Earlier I was using the below nant script to create label for a particular version in the source control <exec program="p4" commandline="...
Vivek Rawat's user avatar
1 vote
1 answer
357 views

Perforce Swarm, how to access outside of local network?

I just deployed the Helix Evaluation on my vSphere environment. I can access Perforce just fine outside of my LAN with the help of port forwarding. However Swarm doesn't use ports such as 'perforce-...
Christopher Gault's user avatar
1 vote
0 answers
693 views

P4Python build errors in linux

I have installed reviewboard on linux and now trying to install P4Python to use Perforce. Using Python 2.7.6, P4Python-2014.2.962887 and p4api-2014.2.978861. How do i resolve this error: $python ...
frustrated_user's user avatar
1 vote
2 answers
255 views

Migrate separate Perforce branches to a single Git repository

I'm trying to migrate a project from Perforce to Git. I have an unusual scenario (at least I haven't found anyone asking anything remotely similar), under which the Perforce projects look like this: ...
traveh's user avatar
  • 2,739
1 vote
0 answers
51 views

How Can I Easily Tell Which Changelist I'm Integratingin Perforce/P4V?

Sometimes, when I'm using P4V using the "Merge/Integrate Using Changelist XXX" option, I get interrupted before I do the actual resolve. If I have a number of integrates on the go at once, I may not ...
matt freake's user avatar
  • 5,030
1 vote
0 answers
520 views

Unable to connect to Stream when setting up new workspace

When setting up a new workspace within P4V, I am unable to connect to a Stream. Connection -> New Workspace opens the new workspace dialog box, but the Stream option is disabled. The issue ...
user1052610's user avatar
  • 4,569
1 vote
0 answers
313 views

Disabling P4V progress bar when submit fails

I'm developing a trigger script for Perforce. I can install it and it works fine. One thing that bugs me is whenever a commit fails in P4V, there are 2 windows that open in this GUI. One is "P4V" and ...
user1906583's user avatar
1 vote
0 answers
1k views

Unable to revert changes in P4

I am trying to revert files in a change list with -a and -c option. I did manually like this. p4 revert -c 19264444 file ... pause p4 edit -c 19264444 GP*.* pause robocopy %SRC% %DEST% *.rom pause ...
test's user avatar
  • 91
1 vote
0 answers
329 views

How To Capture Unit Testing Metrics

I'm not sure how to capture the testing result data related to unit tests each time a unit test is run. I use Bamboo as a continuous integration server. It works great, basically makes a build of your ...
Henry F's user avatar
  • 4,960
1 vote
1 answer
658 views

Cannot view files associated with specific label in Perforce P4V Linux client

There is simply no option anywhere (and I've looked everywhere) to get a list of the files associated with a specific label in Perforce P4V on Linux. I've seen a similar question that mentioned a ...
Mike Dannyboy's user avatar
1 vote
1 answer
479 views

Intellij perforce plugin issue - com/intellij/openapi/vcs/FileRenameProvider [Plugin: Perforce]

I tried using Perforce plugin in intellij. After i restarted the intellij, it doesn't open and throws the below exception Cannot load project: com.intellij.ide.plugins.PluginManager$...
Navin GV's user avatar
  • 730
1 vote
0 answers
828 views

Moving shelved files from one Workspace to another workspace

Hi I have two workspaces of different locations which have the same folder and file structures. Basically they are the forks of same workspaces. I have some changes in my shelved files in 1st ...
Ashish Negi's user avatar
  • 5,223
1 vote
0 answers
119 views

P4 edit can cause whitespace without edit?

I have a tool what uses Perforce. When it merge a branch back to the parent, mark the project branch with checkout a text file, and submit it unchanged. This tool also use that text file, for read the ...
Tamás Juhász's user avatar
1 vote
1 answer
504 views

subversion externals alternative on perforce

We are in the process of converting from svn to perforce but have some issues to resolve, relating to our current workflow. At the moment a project release consists of a Source/ directory which ...
Sourmix's user avatar
  • 21
1 vote
0 answers
154 views

Git mergetool with Perforce

I am using Perforce to resolve file conflicts in Git. To set this up, I ran git config --global mergetool.p4merge.cmd 'p4merge.exe \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"' git config --global ...
Ashish Negi's user avatar
  • 5,223
1 vote
1 answer
766 views

How to escape a special character in password of a p4 command like "p4 -P password sync //depot/..."?

I want to run a p4 command like: p4 -P mypassword sync //depot/... However, there is a special character '*' is my password which can't be recognized by the p4 command line. Is there any way to ...
Shane Lu's user avatar
  • 1,086
1 vote
1 answer
82 views

Fixing wrong branch creation in Perforce

I recently inherited a project that used Perforce for version control. Although the product has many versions the branches were done in a copy-paste style. The result is that I can't view a file ...
Ika's user avatar
  • 1,496
1 vote
0 answers
198 views

p4 changes actually restricted to certain depot path

I want to list the changes that have committed changes to certain depot paths p4 changes //depot/path/blah/... will not properly restrict changes to those that occurred on the given depot path but ...
Sam Liddicott's user avatar
1 vote
1 answer
114 views

Turn off 'Perforce change - o' command

I'm logged in with the Perforce viewer client on my MacBook Pro, and I keep getting this popup that says: You don't have permission to execute the "P4 change -o" command This happens ever 5 minutes ...
BlackHatSamurai's user avatar
1 vote
1 answer
831 views

Unable to clone from git p4 clone

Unable to clone to repo : (Any help would be appreciated) I am trying to clone the repo from Perforce. I have permission to repo. Verified. git p4 clone --destination=/workspaces/git/lotus/main //...
Balaji Boggaram Ramanarayan's user avatar
1 vote
1 answer
723 views

Editing perforce files in gvim

Is it possible to execute the command p4 edit on a file before saving it in gvim ? and only if it is in a perforce work area ?
Jean's user avatar
  • 22.1k
1 vote
0 answers
188 views

Perforce - Disable storing a list of recent connections

Perforce (P4V) allows you to configure your favourite connections, aliasing ips/ports/workspaces to a more memorable name. However after visiting each favourite it will then be added to the "recent ...
RJFalconer's user avatar
  • 11.3k
1 vote
0 answers
219 views

Managing labels while migrating from perforce to git

I am currently into migrating the source code from perforce to git. Along with code, I am also migrating the commit history as well as labels. In perforce, we can select few number of files and attach ...
Gaurav's user avatar
  • 1,025
1 vote
0 answers
494 views

perforce + reviewboard output from p4 diff2 unable to upload to review board

I got diff file generated using following command p4 diff2 -duw //depot/mainbrach... //depot/proj_branch... | grep -v "identical" > changes.diff i try to create review request with this diff ...
Gana's user avatar
  • 1,007
1 vote
1 answer
3k views

perforce: how to add a file with writing permissions

I'm trying to find a way of adding ( p4 add ) a file that will have a chmod 660 permissions. ( I'm using a p4 command-line, not p4v ) ? Since Perforce is treating file extensions differently, maybe ...
Ricky Levi's user avatar
  • 7,660
1 vote
1 answer
147 views

Uploading delta changes to perforce and label

Every month I need to sync big chunk of files from git and upload it to perforce and create a p4 label with all files uploaded, and from p4 I do builds, this is odd but we cannot change this now. so ...
rodee's user avatar
  • 3,323
1 vote
1 answer
470 views

Cronjob command is not working

I have one script that I am trying to set as crontab, but it is failing at "p4 sync" statement. Getting following error : /bin/sh: 1: p4: not found I can run it manually without any errors. I ...
mrutyunjay's user avatar
  • 7,330
1 vote
1 answer
823 views

Add a file to shelved perforce changelist from another workspace

I have a changelist #1234 which I shelved from destop1. It has 5 files but I want to add another file to it say 6.c. The problem is when I do p4 edit -c 1234 6.c from desktop2, p4 errors out something ...
username_4567's user avatar
1 vote
0 answers
99 views

Build Ant for Perforce integrated Eclipse Project

I have set up a Ant Build project in Eclipse. The project has been accessed via Perforce. When I try to build the Ant project. I am able to see that compilation errors that shows that required JARs ...
Umesh Patil's user avatar
  • 10.6k
1 vote
1 answer
125 views

Git p4 branches

I have a project based in //Engineering/qwerty/baseline/servers/ApplicationServer/ and branch //Engineering/qwerty/branches/rtf/ How can I do one git repo with master => //Engineering/qwerty/...
ButuzGOL's user avatar
  • 1,243
1 vote
1 answer
333 views

perforce unshelving in other branch with partial mapping

Let's say I've shelved files A,B,C I now want to unshelf this into a different branch, but my spec only has files A,B Is there any way to do this so that perforce will unshelf the files that are ...
thisisdog's user avatar
  • 948
1 vote
2 answers
442 views

Perforce - Check out all files after back out

Lets say a CL was submitted with large number of files. Now the entire CL was backed out due to bug in all those files. How do I now checkout all those files at once? Any easy way do this?
user3347694's user avatar
1 vote
2 answers
525 views

Perforce replica server that can write to main server and has build capability

I need to customize the Perforce server to achieve the following requirements: I need a local replica server which gets synced with the main server in a different geographical location. I can have ...
sajas's user avatar
  • 1,599
1 vote
2 answers
634 views

Is it possible to prevent perforce submit without filename?

My usual way to submit a file is: p4 submit –d “some description” filename I could do: p4 submit and use the editor, but I always have many files open, so that method is inconvenient Several ...
Chris Koknat's user avatar
  • 3,403
1 vote
1 answer
1k views

Use P4 describe to get author and description of a changelist from perforce

I have a changelist number of perforce. How do I get the author and description or this changelist using p4 describe. I am not able to figure it out.
user1788294's user avatar
  • 1,853
1 vote
3 answers
569 views

Windows batch file to remove files from directories but retain latest file in each directory

I'm trying to write a windows script (for Win7/Server 2008) that removes files older than a certain date while retaining the most recent file regardless of age. Perforce stores versioned binary files ...
alan's user avatar
  • 48
1 vote
0 answers
781 views

How to get changed line numbers of a perforce change list from C#/P4.net code

I am working on a perforce client plug-in and need help to get the changed line numbers. I have been able to get the change list and all the files are available locally. Since it is a custom ...
Subhanandh's user avatar
1 vote
1 answer
360 views

Peforce revert if p4 diff has no changes

I want to revert the file based on the perforce diff condition If there are no changes in perforce diff then i need to perform revert otherwise nothing the following are perforce commands i am ...
user2503871's user avatar
1 vote
0 answers
90 views

VIsual Studio Perforce - build errors trying to figure out where to specify p4 password

I just installed visual studio perforce plug in and I selected it as my source control in the option settings. I added a P4Config.txt file with my PORT, user, client, editor I then using the VS Open ...
user565660's user avatar
  • 1,171
1 vote
3 answers
4k views

perforce how to cleanup a file opened on a non-existent client and non-existent workspace

Title says it all. There's a file that perforce thinks it is opened in exclusive mode by a user on a given workspace and a given changelist, but neither the workspace nor the changelist exists. The ...
HASM's user avatar
  • 308
1 vote
0 answers
714 views

SyncFiles - NullReferenceException [P4API]

I'm starting to build a custom GUI for Perforce, I could list my DepotFiles, but when I try to do something with my client, I'm getting NullReferenceException. I couldn't find much about SyncFiles ...
Bruno Brs's user avatar
  • 673
1 vote
2 answers
4k views

Sublime Text 3 & Perforce Plugin

I'm using a newly installed Linux Mint and attempting to develop with Sublime Text 3. I've installed p4v, p4 and ST3. I've created a P4CONFIG in the workspace folder that contains the P4PORT, ...
paradox870's user avatar
  • 2,202
1 vote
1 answer
296 views

Remap dirs and files in git? Kind of clientspec in P4?

There is a large project which is stored in a remote GIT repository in the way: root/ | * module1/ | * include/ | | | * lib1/ | ...
zweibaranov's user avatar
1 vote
0 answers
1k views

How can I find out the change set number of my current P4 workspace

I have not synced for about 3 weeks. How can I find out the change set number of my local copy of P4 workspace (which is not the latest revision)? I tried 'p4 counter change', that seems to give me ...
michael's user avatar
  • 108k
1 vote
1 answer
105 views

Send perforce commit mail only to users who are allowed to see changelist

We are using a perforce setup where different teams have different access privileges to paths in the depot. Now we would like to use a script along the lines of the python scripts at http://wiki....
tcuddw's user avatar
  • 11
1 vote
0 answers
2k views

What causes the "operation took too long" error during integration in Perforce?

I have a branch that contains roughly 10000 files. There are not too many changes, roughly 50 of them are affected. Sometimes integration goes fine, and the changelist is ready in several seconds. ...
Calmarius's user avatar
  • 19k
1 vote
1 answer
259 views

Using p4 api to submit individual files of changelist

Using P4V GUI, you can expand a changelist, right click any file in that changelist, and submit that file individually. Using the p4 api, all the functionality I seem to have is the ability to submit ...
JuiceZBox's user avatar
  • 111
1 vote
1 answer
438 views

Creating P4Server vs. Server using p4 api .NET

My end goal is to create a perforce server in which I can log in, create a workspace, and checkin/checkout. I am going through the p4 api and trying to figure out how to do this, and I am unsure on ...
JuiceZBox's user avatar
  • 111
1 vote
1 answer
2k views

p4passwd invalid or unset in git-p4 python

So I have my perforce and git set up. I can easily access, modify perforce with simple commands like "p4 info" etc from the command line. I have a perforce workspace and I created a new directory for ...
Asad S. Malik's user avatar
1 vote
2 answers
429 views

Perforce: How Not To Forget Reconcile Offline Work?

I sometimes forget to commit offline work in perforce as you cannot see them in the pending changelist. Does anyone know how to force user to put offline work into pending list or can it be ...
Nishant Soni's user avatar

1
3 4
5
6 7
13