perforce

Perforce: Avoid using the same absolute local path on all dev machines?

I'm new to Perforce (but am fairly experienced with other systems, mostly SVN). Now I'm trying to make a simple windows bat build script that needs to check in some build results (controversial to some, I know, but please try to ignore as it's a different discussion). I'm using p4 for this. The problem is that it seems I either: Use ...

Actually, I don't want you tracking that file after all ... but how do I get Perforce to listen?

Sometimes I "Mark for Add" and add files to Perforce which I actually didn't want Perforce to worry about. Is there a way to revert it so it just goes back to showing in P4V as an "untracked" item? See my example: I've added mil.ico and mil3.ico by mistake. I just want them to go back to looking like test.ico, ie. ignored by Perforce...

Can I use perforce in my company?

Our company didn't buy any perforce, but I want to use it. For example to install the server and client, is there any license issue? By default, perforce supports two users and five client workspaces, that's enough for our small company. detailed licensing as following.. Licensing You may use software downloaded from Perfor...

Perforce CLI hangs indefinitely

Surprizing little documentation on setting this up, so I'm sure this is a setup problem. Steps to reproduce: Open terminal (p4.exe in PATH) type p4 [RET] Hangs indefinitely. When I issue commands from emacs (ie p4 edit [file] it eventually comes back with Perforce client error: Connect to server failed; check $P4PORT. TCP connect ...

Add a project to a VS2008 solution, without the project going into Perforce

I know this is possible because one of my older solution files has a mix of some projects under source control and some not. However I can't seem to reproduce that configuration with a newer solution. Every time I add a project to the solution it acquires a yellow cross and under Pending Checkins the project is listed as a Newly added f...

Perforce Get Latest Revision doesn't get checked-out files?

When using p4v to sync a project onto a 2nd machine I was surprised to see that files I had checked out on my primary machine were not included in the "Get Revision" (Get Latest Revision and Force options selected). This seems like an elemental thing to get working but I can't find how to force this other than perhaps tagging the sourc...

Lock Source file in Perforce while using Maven release plugin

Hi, I got an error in Hudson console out saying the build fail because Maven release plugin cannot update POM.xml version while there are still unresolved files. The problem is caused by other people updating the POM during the build. Can any guru teach me how to solve the problem? I am think about a P4 lock, anyone can give me more ...

Coming from svn background, what should I watch out for in Perforce?

What concepts etc in perforce are different from svn in ways that are likely to give me problems? (I am not interested in witch is best, as it not for me to decide what system my new employer uses) ...

How do I see if a branch contains a bug fix in Perforce?

(I am a new perforce user, but have used lots of other source code control systems in the past.) We use a change list to check-in each bug fix; the change list comment includes the bug ID therefore it is easy to track when a bug fix has been checked into a branch. However I can’t see an easy way to find all branches a given bug fix has...

Workflow for renaming a class when using Visual Studio with Perforce

(I am new to perforce and am trying to avoid getting myself into problems, I have hit problems doing this with other source code control systems) When I rename I class I need to Change the class name it’s self Get Visual Studio to Refactor all the code that uses the class Rename the file in the Visual Studio project Rename the file in...

What are the advantages/disadvantages of perforce “jobs” over an external but tracking system?

I am trying to understand what perforce “jobs” provide over an external bug tracking system and just putting the bug ID in the check-in comment. I was hoping that "job" could help with How do I see if a branch contains a bug fix in Perforce? ...

How to set file labels in p4merge

When p4merge is invoked from p4v it displays depot paths as labels on the files. I would like to use p4merge as a diff viewer for SVN, and to that end I have this batch file: @echo off pause p4merge %6 %7 This works, but the labels appearing on the left and right panels are the names of the temporary files SVN has created to feed to p...

How can I tell P4SCC to ignore files?

I started on a new project a few months ago and am forced to use perforce (pun intended). I have experience with a variety of distributed and monolithic VCS, especially SVN with Ankh as SC plugin in visual studio...that said, I have been evading some..quirks perforce has by applying various workarounds you can find, mainly here on SO. Th...

git-p4 cloned repo contains mixed filename case -- how to fix?

I imported a large repo using git-p4, and discovered that I have some strangely mixed-case filenames, e.g.: dirA/DIRb/file1.txt and then other files like so: DIRa/dirB/FILE2.txt and so on. These get entered into the repo this way because git-p4 uses fast-import. This causes Git to mysteriously claim that there are untracked directo...

Is it possible to import all of the Perforce history into Kiln

We are looking at moving away from Perforce (mostly due to the pain of having to always be connected to its sever and the lack of support for moving bug fixes between branches, and also wish to introduce a tool for code reviews) However we still need all the history that is in Perforce, so is there a way to move to Kiln while keeping th...

How can I instruct Perforce to merge instead of overwrite or revert when unshelving a file?

How can I instruct Perforce to merge changes into an existing, open, and modified file in the workspace when unshelving a file shelved in the depot? The only options that Perforce appears to offer the user is to overwrite or revert the existing file in the workspace, but this does not allow, for example, to unshelve and integrate change...

`git-p4 clone` fails "new tip ... does not contain ..."

I'm runnining on Windows, with the windows p4 client, and git installed via Cygwin. The p4 client advertises how its syntax is regular across platforms and all that, so that should be hunky-dory. So when I go to git-p4 clone --verbose //depot/path/to/source, it lists out all the files in the repository as though they were being checked ...