perforce

Task per branch with perforce

Hi all, i'm preparing a seminary about p4 and i'm trying to find the best way to use the "Task per branch" methodology, now i'm using the following steps: (all by CLI) Set my client to the root depot in order to create the new branches. View: //depot/... //myMachine/... p4 -c myClient integ -v //depot/MAIN/... //depot/myBranchX/... p4...

perforce label does not list files

I created a label using the new label context menu: I defined the parameters as follows: (unlocked) Label: ms_test Description: Created by ms view: //depot/Projects/Shared/... //depot/Projects/AddIn/... The label is created and shown in the label pane but when I select the label and click on the "List files at ms_test" menu it...

How to make a project "repository/team" ready

I have been working solo on a project for some time, and now, new developers are likely to join the project for various reasons. I, of course, use a version control software but I am afraid importing my project into Eclipse and making it run might prove a little difficult for new comers, and I want to make it as clean as possible. When...

Is there a way to add a custom RCS keyword in Perforce?

Perforce supports various RCS keywords including $file$ and $version$. Is there a way to add a custom RCS keyword? I want to create a custom keyword so that when the file is checked in, Perforce will replace the keyword with a custom string. e.g. from: $customString$ to: This is a custom message ...

How to discard perforce integration history for a newly-branched and edited file?

Let's say I've branched a file in perforce and edited it. Now I'd like to discard the branch history and treat the file as a fresh add. What command accomplishes this? This scenario arises often because my IDE insists on treating a copy as a branch/edit. After making extensive changes to the copied file, it causes confusion to treat it ...

How to set defaults for perforce client specs

I'm trying to discover how to change the default set of Client Spec options and submit-options. set P4CLIENT=my_new_client_1 p4 client Gives me the following spec default-spec: Client: my_new_client_1 ... Options: noallwrite noclobber nocompress unlocked nomodtime normdir SubmitOptions: submitunchanged ... Now on my machine i ...

In perforce how can I delete files from a directory in my workspace where the files are not part of the workspace?

In perforce how can I delete files from a directory in my workspace where the files I want deleted are not part of the workspace? I have a directory on my file system with files it gets from perforce but after some processes run, it creates some new files in those directories. Is there a perforce command to remove these generated file...

Verbose p4 sync

In the visual Perforce client (p4v) there is an option: Show p4 command output for file operations When it is enabled, in the log pane I can see detailed logging like this: p4 sync /Users/az/ftp/...#head //depot/ftp/inc/PICHNL.H updated /Users/az/ftp/inc/PICHNL.H //depot/ftp/src/ftpprot.cpp updated /Users/az/ftp/src/ftpprot.cpp 2 ...

Need a Perforce DVCS recommendation: git-p4, hg Perfarce, or Something Else?

We're getting migrated from Subversion to Perforce at work. I've been using git-svn and it's kept me very productive. I want to keep using a DVCS for my own development. Which works best with Perforce in your experience, git-p4, Perfarce (hg) or something else I've never heard of? What works well (and what doesn't)? ...

Subversion option to display results of update without actually updating

The perforce command: p4 sync -n will display the results of the sync (update in subversion) without actually performing the sync. I've been looking in the svn help pages and googling around for a tag/command in subversion that will do the same but have yet to find one. I was thinking there may be a tag for svn update that would acco...

How do you get the branch spec that was used for a specific integrate in the depot history?

P4V's depot view shows the various branches and their paths, but not the branch names. The branch spec (or branch mapping) contains the "name" of the branch. Let's assume that user X has branched code from branch A to branch B using a branch mapping M some time in the past. Is there a way to ask perforce which branch mapping was use...

Perforce Scripted Installer

I was trying to create a scripted installer for P4V. The port settings, user setting and the workspace name are set as specified in the config file. But when I open perforce the connection dialog box throws an error "client 'manojpc' unknown". The following was my configuration file: set P4PORT=server:2345 set INSTMODE=NoPrompt set INS...

Perforce - finding files which are modified, added or deleted

For maintaining the quality of our perforce depot, I would like to find file which were modified, added or deleted over a certain period of time - say over last week. How do I do that? ...

How to force Maven SCM Perforce provider version?

I am trying to reproduce an existing maven environment on another computer and when I try to use the release plugin it gives me an "password is required for the perforce scm plugin" The odd thing is I didn't make any changes to the pom.xml. I found this bug report: http://jira.codehaus.org/browse/SCM-415 Interestingly I am using maven...

"Show In - Explorer" with multiple files?

Here's a frequent situation: You have about thirty files checked out into a specific pending change-list. After working on those files, and before submitting them, you needed to move them to a folder (external to deposits, so a simple "Integrate" wouldn't be suitable). Using the "Show In - Explorer" option, you'll get a lot of window po...

Perforce P4Python API Bug

I am compiling on Ubuntu 10.04 LTS. The Perforce Python API uses their C++ API for some of it. So, I point the setup.py at the C++'s API directory using the --apidir= they say to use. When it starts to compile the C++, I get a whole load of errors. Here is the error list... http://pastebin.ca/1907389 ...But anyway, no one else has had th...

P4, How to find changelist user from a given changelist?

Hi, Anybody knows how to get the change list user from a given changelist(say, #12345)? p4 describe -s #12345 will give output like this: Change #12345 by user@user_clientspec on 2010/07/26 10:26:29 affected files... ....... Is there any command to give only the user name. Not with client spec as it shows user@user_clientspec. ...

Problem with emacs lisp shell process arguments.

I'm attempting to run P4V commands directly from xemacs. After pulling in the p4.el to emacs I've written the following: (defun p4v-command (cmd) (get-buffer-create p4-output-buffer-name);; We do these two lines (kill-buffer p4-output-buffer-name) ;; to ensure no duplicates (call-process "p4v" nil (get-buffer-create p4-output...

Atlassian JIRA + SQL Server + Perforce on vServer

Hi, I want to organise my private software development process and I plan to use JIRA together with SQL Server 2008 R2 Enterprise and Perforce. I have already installed and configured this "pack" for evaluation purposes on desktop machine. For a clean production environment I want to migrate (of course with a clean install) all those ...

I am trying to use mercurial and the perfarce extension to check out and getting an error.

I am trying to use the "Perfarce" extension to Mercurial to create an hg repository (working copy) that is managed by mercurial, with a link to check out and in to a central perforce server "depot". The help says to enter a command like this: hg clone p4://hostname:portnumber/userid When I do this, it creates a folder under my current...