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

Introduction I would disagree with the claim that Perforce integration in Visual Studio is “terrible”. Rather, I’d define it as “out of the box experience is less than optimal” :-). The following sections discuss my understanding of the integration and recommendations for project/solution setup. If you’re not interested in the details of how the source … Read more

Git for Perforce users

I haven’t used perforce much so this may not be exactly be a 1:1 translation. Then again distributed source control systems like git and mercurial have a different workflow anyway so there really isn’t (and there shouldn’t) be a 1:1 translation. Anyway, here goes: Create multiple pending changelists -> Use branches instead. In git branches … Read more

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

EDIT: Please use p4 status now. There is no need for jumping through hoops anymore. See @ColonelPanic’s answer. In the Jan 2009 version of P4V, you can right-click on any folder in your workspace tree and click “reconcile offline work…” This will do a little processing then bring up a split-tree view of files that … Read more

Can you “ignore” a file in Perforce?

As of version 2012.1, Perforce supports the P4IGNORE environment variable. I updated my answer to this question about ignoring directories with an explanation of how it works. Then I noticed this answer, which is now superfluous I guess. Assuming you have a client named “CLIENT”, a directory named “foo” (located at your project root), and … Read more

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

From the “View” menu, select “Workspaces”. You’ll see all of the workspaces you’ve created. Select the workspaces you want to delete and click “Edit” -> “Delete Workspace”, or right-click and select “Delete Workspace”. If the workspace is “locked” to prevent changes, you’ll get an error message. To unlock the workspace, click “Edit” (or right-click and … Read more

Perforce for Git users? [closed]

This something I’ve been working on over the past couple weeks on and off. It’s still evolving, but it may be helpful. Please note I’m a Perforce employee. An intro to Perforce for Git users To say that moving from Git to Perforce or from Perforce to Git is non-trivial is a grand understatement. For … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)