perforce

@ in p4 filename

I'd like to script p4 a little. Unfortunately, some of the filenames that we're tracking have "@" in the filename. The filenames are in the form [email protected]. If I try to do something like p4 sync a\@b.xml on a mac (or p4 sync [email protected] on windows) it gives the error: Invalid changelist/client/label/date '@b.xml' Is there another way to esca...

perforce server settings

Is it possible to set the Perforce server to by default don't let the users check out a directory, instead of letting everybody update their view-spec to exclude that directory? Eg: if you would like to check out //code/heavy/stuff you must explicitly add that directory to your view-spec instead of adding a -//code/heavy/stuff yo your s...

What is a Perforce "shelved" file?

In Perforce, what is a "shelved" file? What is the purpose of shelving a file that is open for edit in the workspace? ...

How to do both ways integrations across different perfoce depots?

I would like to know how we are supposed to do integration between different perforce servers/depots. I'm looking for a solution that would allow us to do both-ways integrations. Currently I found some information on Using Remote Depots article where they say how to map the remote depot as read only. Is there the only solution to do...

How to use a custom compare tool with Perforce?

I have copy of Grigsoft's Compare it! tool, can anyone tell me how to use it with Perforce source control? ...

Perforce "Locked client" error

I'm new to Perforce, and it is not going well at all. But currently, I am completely stuck, as all I can get it to say is: $ p4 open a_code_file.cpp Locked client 'my_hostname' can only be used by owner 'perforce'. I have absolutely no idea what I did to upset it, and the error message itself is meaningless gibberish to me. "perforce"...

Does anyone has the experience of using the new p4 replicate command in their Perforce back-up /restore script ?

Hi all, we recently performed an upgrade of our whole perforce system to 2009.02 During this exercise, we noticed that the back-up /restore process that was installed here by the Perforce consultant a year ago was not completely working. Basically, the verify command has never worked (scary !). As we are obliged to revisit our Back-Up...

Reapplying changelist in perforce

I'm rather new to perforce, but have quite a bit of other VCS experience... Imagine this: You submit changes (changelist 1) A colleague submits changes on the same branch, accidentally overwriting your changes. (changelist 2) I tried integrating (which P4V refuses to do since it's already integrated) and looked around for a way to...

Visual Studio 2008 & Perforce. Where is my .vspscc files?

Hi, I use Visual Studio 2008 and Perforce. When I bind my project to perforce(File -> Source Control -> Change Source Control -> Bind), Visual Studio complain like "~.vspscc File is not under source control". Should I create that file for myself, or is that file created by Visual Studio? If it is created by Visual Studio, why does it com...

Diff multiple files in perforce across a revision range

I'd like to diff a bunch of lines across several revisions. Like, I'd like to see a.c, b.c, and c.c from changelist X to changelist Y. p4 diff2 a.c@X a.c@Y (where X & Y are changelist numbers) seems to work, but only sometimes. Specifically, if a.c is non-existent at X, I don't get a diff. I'd like to be able to get the diff (even thoug...

Git to SVN trouble

My boss has a Perforce repository for which he wants to make a read-only copy available on Sourceforge via subversion. He had a perl script which would do this but it's no longer functioning (we don't want to try debugging it yet) and it's really not that great anyway. So an alternate solution is to pull the perforce repo into git as a ...

perforce connect history of two different files

Hi everyone! I have a problem, in a refactoring attempt I have copied files from one place to another and added them in my scm (perforce). When I was done and everything was working I deleted the old (moved) files. Can I connect the file histories with each other? The best would be to se the "move" like it should have been done.. Than...

Rejecting files with Windows line endings using Perforce triggers

Using Perforce, I'd like to be able to reject submits which contain files with Windows line endings (\r\n IIRC, maybe just \r anywhere as really we only want files with Unix line endings). Rather than dos2unix incoming files or similar, to help track down instances where users attempt to submit files with Windows line endings, I'd like ...

Moving the Emacs point to beginning of specific text for Perforce commit messages

How do you move the point in Elisp to the beginning of <enter description here> and kill that text. I'd like to place this in my ~/.emacs-p4, which is used via P4EDITOR, $ echo $P4EDITOR emacs -nw --no-init-file --no-splash --load ~/.emacs-p4 The template use for p4 submit is: # A Perforce Change Specification. # # Change: The ...

Can you "ignore" a directory in P4V?

We use Visual Studio, which generates lots of bin and obj directories. When I use P4V's "Reconcile Offline Work" feature, these appear in the "Local files not in depot" list. I'd like to exclude them. I found this question, but that talks about files, and when I try what it suggests (adding the following to my workspace view), it doesn'...

p4v getting files as writable

Perforce is downloading files to the external hard-drive connected to my MacBookPro as writable ("777"). It's as if the "allwrite" option is set in my workspace, but it's not. I thought Perforce was supposed to mark the files read-only until I check them out. Is there a setting somewhere I missed? Rev. P4V/MACOSX104U/2009.2/236331 Ma...

fastest way creating and pointing to a new branch with perforce

Hello, I've been testing the branch creation with perforce and I have a question: What is the fastest way to create and point to a new branch in perforce? I've tried several ways and I always need to do a sync on the new branch and later performing the integrate command, but that implies deleting and redownloading on disk all the file...

Perforce: is it possible to force a branch/integrate workflow on a repo?

Say I've got a \\Repo\... repo. Currently devs generally tend to do all their work directly in there, which normally isn't a problem for small pieces of work. Every so often, this approach fails for various reasons, mainly because they're unable to submit the incomplete change to Live. So, I was wondering, is there a way to enforce on t...

Perforce RCS keywords expansion

Perforce manual says that if you want to automatically expand RCS keywords in file contents, you have to specify some type for them (i.e. +k or +ko). Is there a way to specify file type based on it's extension globally for the whole depot or its subdirectory? For example, Subversion has such a feature called auto-props. ...

Does perforce supports file streams on Windows?

Does Perforce supports file streams on Windows, on NTFS? ...