perforce

Perforce - how to allow users without checkin privileges to submit patches

Our team uses Perforce for revision control. We'd like to be able to accept patches from folks outside our team (e.g. support engineers) without giving them full privileges to check in code, like the way that open-source projects are willing to accept code from anyone but give full commit privileges to only a few people. Other source-c...

perforce connection

hi , this is a real basic question but i was struggling at it from 30 mins. I am using perforce and i want to access my colleagues workspace for accessing data report which we are working on together. How can i access his location? he has given me the place where the file is located : //datacell/nfg/depot/src/ I tried finding the user ...

exclude a changelist from p4 sync

Is there any easy way to exclude a specific changelist from p4 sync? I want to sync up my code, but I don't want to fetch the changes from changelist #1337 Like: p4 sync //depot/source/... - //depot/source/...#1337? ...

How do I find out which files I've changed in Perforce branch?

I've got a (sparse) development branch in Perforce which I keep up to date regularly with the main code line. I'd like a simple way to list all the non-integration changes which have been made to the branch, ideally checked out into a new changelist (to allow me to do final code-tidyups before merging back to the main code line). The on...

Non integrated change lists between two branches

Hi All, I wanted to find the non-integrated changelists from branch1 to branch2. When I do the following command : p4 interchanges -t branch1 branch2 > temp.txt I am getting the error: "Too many rows scanned (over 500000); see 'p4 help maxscanrows'." How I can use more restrictive wild cards in this case to get the results? I want t...

Why does perforce show "//depot <contains no files or folders>"?

Starting yesterday I have been unable to connect to our Perforce server. Expanding the depot gives the message "//depot ". Funny because I connected just fine last week and the folks sitting next to me can connect without problems. IT says nothing the settings have not changed and no errors are being reported. It doesn't help that IT is...

What Perforce (p4) command lists the files in a given changelist?

What Perforce p4 command lists the files changed in a given changelist? Note that I want only the names of the files that have changed and not the content differences. ...

Perforce compared to Team Foundation Server

How does Perforce compare to Team Foundation Server (TFS). Here at work, we have used Perforce (Which I like very much btw) exclusively. On the other hand, I'm sorry I have never used TFS. I'm interested in TFS though, however I cannot make a judgement call as to the difference. What are the advantages of using each over the other? ...

Find the Perforce Label a workspace is synced to

I have a Perforce workspace which is synced with a p4 label specification. How do I find out which label has been synced here in my workspace. ...

Perforce: P4V option to 'add to client view'? (It exists in P4Win)

In the Perforce realm, the P4Win GUI is now "legacy" and the new P4V is supposed to fill in the void (and it does, most of the time). There was one very useful (albeit rather hidden) option in P4Win that allowed adding a depot path to the client specification in a few clicks. Is there a similar option available in P4V? ... because I ca...

Using Mercurial with Perforce

Does anybody have any advice about using Mercurial as a front end for Perforce? What I would like to do is to use Mercurial to handle really granular changes and then, once I'm done something, push it back up to the Perforce server. I found this article http://www.dehora.net/journal/2008/01/05/using-mercurial-with-perforce/ but it do...

How to prevent developers from deleting perforce depot?

I am a newbie to perforce and recently started experimenting. I am normal developer with write privileges and was able to delete the entire depot. How can i avoid this while retaining write privileges? Is there any other way other than Trigger and permission table? Also, if the developer has deleted a [depot? -msw] and submitted the ...

How to show new files in Perforce workspace?

When I add new files to my project which is managed by Perforce, how can I get a list of the new files I've added (the ones Perforce does not know about yet) so I can make sure I don't miss any in my changeset? Something like 'svn status | grep ^\?' or 'git status' to show the unstaged, unknown files. Thanks! -Casey ...

Perforce and Emacs

I'm looking to setup emacs to allow me to use perforce without having to use p4v. I've had a look at the emacs wiki and a search on the site but there only seems to be two options out there - both of which are pretty old. First option is p4.el which was last updated in 2004. The second option is the integration with emacs VC component,...

In Perforce how do you view history of all changelists in repository?

I am not after history of a specific file but of the whole revision tree. ...

Renaming files in Perforce?

Every time I rename a file in Perforce it actually deletes an old file and adds a new one. As a result the new file doesn't share the old's file history. Is there an easy way doing it? ...

Non integrated change lists between two branches

when I use the following command in command line it's giving list of non integrated change lists. p4 interchanges -t $branch1 @$date1, @$date2 $branch2 > changes.txt But when I use this command in a Perl script as below it's not giving output: $cmd = system ("p4 interchanges -t $branch1 @$date1, @$date2 $branch2 > changes.txt"); Th...

Use perforce to capture current state of external directory

I have a directory outside the repository. I put generated sources in there. These generated sources take FOREVER to create. Rather than have everyone on the team generate these sources, I would like to use our build machine to generate the sources, and check them in to perforce. How do I do this and ensure that the source controlled dir...

How do I configure BeyondCompare to ignore SCM replaced text in comments?

I do have some text sequences that are replaced by the SCM (Perforce in my case). I do want to configure BeyondCompare to consider these sequences as unimportant differences in order to be able to ignore them when I compare files. In my case it's about Python source files and the sequences are looking like # $Id: //depot/.../filename#...

Git for Perforce users

I've been using Perforce for a number of years. I'd like to switch to using git for my personal code, but all of the git tutorials that I've seen either assume that you'e a complete source control n00b (which makes them incredibly tedious) or that you're used to svn (which I'm not). I know p4, and I also understand the idea behind a dis...