Questions tagged [perforce]

Perforce is a commercial, proprietary, centralized revision control system.

Perforce is a commercial, proprietary, centralized revision control system provided by Perforce Software. It generally requires a connection from the clients to the appropriate server while the managed documents are being modified, and boasts such features as atomic commits and controlled access to the repository. Perforce Software provides a comparison to some other revision control systems (and a glossary of common terms on the same page).

References:

3247 questions
202
votes
6 answers

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…
Dave Andersen
  • 5,337
  • 3
  • 30
  • 29
175
votes
3 answers

Perforce for Git users?

There is a lot of "Git for Perforce users" documentation out there, but seemingly very little of the opposite. I have only used Git previously and recently started a job where I have to use Perforce a lot, and find myself getting very confused a lot…
Brennan Vincent
  • 10,736
  • 9
  • 32
  • 54
161
votes
5 answers

How to delete a workspace in Perforce (using p4v)?

I'm new to Perforce and have created a few workspaces as exercises for getting familiar with it. Now I would like to delete some of the workspaces. I just want to get rid of the workspaces so that they do not appear on the drop-down in the…
Angelo
  • 2,936
  • 5
  • 29
  • 44
124
votes
10 answers

Determining the last changelist synced to in Perforce

A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the changelist number into the revision info by the automatic build system.
Greg Whitfield
  • 5,649
  • 2
  • 30
  • 32
103
votes
10 answers

Can you "ignore" a file in Perforce?

I sometimes use the feature 'Reconcile Offline Work...' found in Perforce's P4V IDE to sync up any files that I have been working on while disconnected from the P4 depot. It launches another window that performs a 'Folder Diff'. I have files I never…
Ray
  • 187,153
  • 97
  • 222
  • 204
94
votes
6 answers

How do I display a particular changelist number in p4v?

When viewing submitted changelists in p4v, is there a way to display a particular changelist number? That is, how I do the equivalent of p4 describe in p4v? Can I filter for a particular changelist number? I don't see how.
Daryl Spitzer
  • 143,156
  • 76
  • 154
  • 173
93
votes
16 answers

How to find untracked files in a Perforce tree? (analogue of svn status)

Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree? EDIT: I updated the accepted answer on this one since it looks like P4V added support for this in the January 2009 release.
David Joyner
  • 22,449
  • 4
  • 28
  • 33
88
votes
7 answers

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…
Laurence Gonsalves
  • 137,896
  • 35
  • 246
  • 299
85
votes
14 answers

GIT vs. Perforce- Two VCS will enter... one will leave

So I'm in the process of getting GIT sold at work. First thing I need is to convince everyone that GIT is better at what they're already used to doing. We currently use Perforce. Anybody else go through a similar sale? Any good links/advice? One of…
Justin Bozonier
  • 7,584
  • 9
  • 44
  • 46
74
votes
8 answers

How do you search the text of changelist descriptions in Perforce?

On occasion, I find myself wanting to search the text of changelist descriptions in Perforce. There doesn't appear to be a way to do this in P4V. I can do it by redirecting the output of the changes command to a file... p4 changes -l >…
raven
  • 18,004
  • 16
  • 81
  • 112
73
votes
9 answers

How does Visual Studio's source control integration work with Perforce?

We're using Perforce and Visual Studio. Whenever we create a branch, some projects will not be bound to source control unless we use "Open from Source Control", but other projects work regardless. From my investigations, I know some of the things…
Weeble
  • 17,058
  • 3
  • 60
  • 75
66
votes
17 answers

What are the benefits of using Perforce instead of Subversion?

My team has been using SVN for a few years. We now have the option of switching to Perforce. What would be the benefits (and pitfalls) of making such a switch?
Ferruccio
  • 98,941
  • 38
  • 226
  • 299
60
votes
9 answers

How to view Shelved P4 Changes?

One of our team member (located in different region) has shelved changes in P4 with changelist 1234. Now, if I want to see what files are modified snf what are the changes, how can I do this? What is the P4 command that I should use to see the…
Mike
  • 7,606
  • 25
  • 65
  • 82
55
votes
4 answers

How do I move a Perforce "workspace" folder?

I've just downloaded a 4.5GB depot to a location on my hard drive that is not ideal. I'd like to move the folder that Perforce now sees as the "workspace" folder (iPhone) to another folder on my hard disk (Project Name), and then use that folder as…
Dave Stewart
  • 2,324
  • 2
  • 22
  • 24
53
votes
8 answers

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…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
1
2 3
99 100