perforce

git-p4 submit fails with "Not a valid object name HEAD~261"

I've got a git repository that I'd like to mirror to a Perforce repository. I've downloaded the git-p4 script (the more recent version that doesn't give deprecation warnings), and have been working with that. I've figured out how to pull changes from Perforce, but I'm getting an error when I try to sync changes from the git repo back. He...

Project organization in perforce

Hello. I created several web applications that use the same static files (css, js, images). When I use svn for version control, I use an external repository (svn: externals) to add files to the current project. For example: - Project_1 ---- Webapp -------- Static (external to static's repo) - Project_2 ---- Webapp -------- Stati...

My Perforce Eclipse Plugin works only partially

Hi all, I installed Perforce plugin version 3.4 on Eclipse Ganymede, configured my connection and workspace. My perforce perspective works just fine. However, when I work in the Java perspective, and I right-click any file in the project explorer, the "Team" context menu does not display the perforce options to check-out, sync etc. It on...

Git repo planning questions

At work, development uses perforce to handle code sharing. I won't say "revision control", because we aren't allowed to check in changes until they are ready for regression testing. In order to get my personal change sets under revision control, I've been given the go-ahead to build my own git and initialize the client view of the perf...

Can Perforce remove a version entry (like ClearCase Destroy)?

I submitted a Changelist in Perforce, but I forgot to remove a couple of files from the list first. I want to undo those changes. I understand that Perforce allows me to "rollback" -- but that just submits another change to the file, cluttering my branch. This is a file I did not intend to change at all. When I go to integrate back i...

git-p4 sync not working - mysterious stack trace

I'm trying to use git-p4 to clone perforce depot. I keep running into a problem in the git-p4 script, where git-p4 tries to access a dict key that is not defined and throws a trace. [~/p4/prod@ernie02] (master) $ git p4 sync --verbose --use-client-spec //depot/prod/ Reading pipe: git config git-p4.user Reading pipe: git config git-p4....

How do I get Eclipse CDT to ignore files

I have a C++ project in Eclipse. The project uses Perforce and Eclipse has the Perforce plugin installed. Everything was fine, until I decided to create a git repo in my project. I created the git repo to snapshot some changes which I wasn't ready to commit. Everything was fine until I refreshed my files in Eclipse. Two problems hav...

Perforce for a Subversion user?

I've just changed jobs. My previous employer uses Subversion, my new employer uses Perforce. Are there any resources out there that'll help me, as a user, change my mental model from a Subversion one to a Perforce one? What are the analogs to common SVN commands? Which concepts are implemented differently? I'm not particularly interest...

Perforce to Mercurial Import

Hi folks. I'm trying to move over some repositories from Perforce to Kiln (FogBugz's Mercurial-based companion VCS), and I'm having some issues. As Kiln does not port directly from Perforce, I'm going via the Perforce -> Mercurial -> Kiln approach, but I'm having some difficulties with the PF to Mercurial convert. I'm running hg con...

What is the difference between "Rollback..." and "Back Out Submitted Changelist #####" in Perforce P4V

I want to reverse the changes from one of my checkins. In the right-click context menu of the particular changelist, there are these two options: Rollback... Back Out Submitted Changelist What is the difference between these two? In what situations should I use either one? ...

Listen to all Perforce commands made by my client machine to server

Hi, Is it possible to somehow listen to all perforce cammands issued from my machine to the perforce server? I did some googling yesterday and found a page somewhere about a perforce proxy or broker that would intercept perforce commands and allow you to do what you wanted with them before sending them to the server...and now can't fin...

Is it possible to use P4Python API with IronPython?

Is it possible to use P4Python (the perforce python api) with IronPython? I'd like to use the python api because it seems much faster than using p4.net implementionat of a Perforce API but when I try to import p4 into IronPython I receive the following error. IronPython 2.6.1 (2.6.10920.0) on .NET 4.0.30128.1 Type "help", "copyrigh...

assign a shelved changlist in perforce?

I'm really excited about Perforce's new shelve command. They say that you should be able to "reassign" the changelist to someone else, who can then unshelve it. How do I reassign a shelved changelist? Is there a way to do it in p4v, or only at the commandline? ...

CodeCollaborator + Perforce: autosubmit changelist ?

Does anyone know if it's possible to configure CodeCollaborator to submit the changelist when the code review for it is complete? The SCM is Perforce. Bonus points for appending the code review ID to the changelist description. ...

Perforce: rename a depot

In Perforce, is it possible to rename a depot? I would imagine that you could integrate across different named depots, but I do not think that would carry over the full depot's history. I have seen this Renaming Depot Directories article, but this applies only to directories under a depot (and not the depot itself). ...

Is Perforce's C++ P4API thread-safe?

Simple question - is the C++ API provided by Perforce thread-safe? There is no mention of it in the documentation. By "thread-safe" I mean for server requests from the client. Obviously there will be issues if I have multiple threads trying to set client names and such on the same connection. But given a single connection object, can I...

Getting a list of workspaces on a specific machine with p4

I was going to ask this on superuser.com but there were only 5 perforce tags so I came here... How can I get a list of workspaces on a specific machine with p4? I can run p4 workspaces, but that gives me all of them, ever. How can I filter it down to a specific machine(client) name. ...

Need to recover local changes overwritten by p4 revert

Hi, I had a pending changelist in my workspace. By mistake I reverted one of the files by reverting to depot. Eclipse wiped off the local history. I am not sure if perforce keeps any history for pending changelists. Could someone tell me if it is possible to recover such file. Thanks Nayn ...

Perforce, Visual Studio and branching.

We are in the process of trying to implement perforce in our small IT department. We're primarily developing in .net using visual studio 2008. I've organized my projects as follows: Customer Product main_line version_1 version_2 Libraries Library_Name main_line version_1 A main_line/vers...

How to make 'p4 annotate' list the modifier name instead of revision number

Hi, In previous organization, 'cvs annotate' used to give annotation w.r.t modifier login id. This was very useful and time saving in finding out who modified what in the file. Could i do same thing in perforce with simple tweeks? Thanks ...