perforce

How would you measure inserted / changed / removed code lines (LoC)?

谁都会走 提交于 2019-11-30 21:09:33
问题 My question concerns LoC metrics. I have to provide statistics of inserted, changed and removed lines. My users use ClearCase and the example below based on it, however I believe that my question is general. Please have a look on the following example (taken from ClearCase documents). It compares two file versions, /main/1 (on the left side) and /main/3 (right side). ******************************** (file summary) <<< file 1: util.c@@/main/1 >>> file 2: util.c@@/main/3 ***********************

Can Perforce and SourceSafe co-exist in Visual Studio?

别说谁变了你拦得住时间么 提交于 2019-11-30 20:40:25
Visual Studio 2008, to be more specific. We're testing out moving to Perforce for source control, so I'd like to install the P4SCC plugin to monkey around with. However, I'd also like to continue using SourceSafe's IDE capabilities for projects that haven't been moved over yet. Can the two co-exist peacefully, or is it one or the other for a specific install of VS? Yes, Visual Studio supports multiple providers. The entire VS architecture is plugin based, and SCC providers are just another kind of plugin (usually implemented as a "package," in VS terminology). You can only have one SCC

git p4 submit fails

夙愿已清 提交于 2019-11-30 20:28:12
I tried running git p4 submit on a repo that I've been running as an interim bridge between git and perforce. Multiple people are using the repo as a remote and its being periodically submitted back to perforce. It's been working mostly fine, except for some duplicated perforce commits whose bizarre behaviour I can't seem to reproduce. Then one day out of the blue I get this error. I can no longer push any git commits to perforce. user@hostname:~/Source/code$ git p4 submit -M --export-labels Perforce checkout for depot path //depot/perforce/workspace/ located at /home/user/Source/git-p4-area

git-p4 submit fails with patch does not apply

烈酒焚心 提交于 2019-11-30 20:05:22
When I do the following: $ git-p4 submit I wind up with the following error trace: error: patch failed: foo/bar/blah.h:1 error: foo/bar/blah.h: patch does not apply Unfortunately applying the change failed! What do you want to do? [s]kip this patch / [a]pply the patch forcibly and with .rej files / [w]rite the patch to a file (patch.txt) How can I recover from this situation and make a successful submission? FWIW, our P4 server is configured to use keyword expansion (filetype = text+k) and there is an expanded keyword at line 3 of the problem file. I made a change at line 1. I've tried

Can I integrate checked out files into a different branch on perforce

▼魔方 西西 提交于 2019-11-30 18:40:01
We were working on a design, and for that we created the skeleton of the classes in our main branch. Now, we are starting to code, and for that we got a new branch. So, it would be nice if I can move all the new files in the main branch into the new branch. However, I cannot check them in yet. So, is it possible to integrate the checked out changelist? Thanks. bk1e The Perforce support web site explains how to do this: Perforce Knowledge Base: Branching work in progress . It would be nicer if it was a single step that didn't require running eight different commands. Gareth Rees Since release

Same file in multiple changelists in perforce

懵懂的女人 提交于 2019-11-30 17:36:34
Is there any way to have the same file be a part of multiples changelists in perforce? With that I mean that from the set of changed lines in the file one subset will belong to a changelist, while the other subset will belong to a second changelist. Bonus question: If perforce does not support this, then which Source Control Systems, if any, do? Dennis To answer the bonus question: GIT allows for per-line changelists. For a comparison between the two view this question: GIT vs. Perforce- Two VCS will enter... one will leave. Another way to do this without branching is create additional

Perforce not syncing files correctly

99封情书 提交于 2019-11-30 14:29:51
问题 I'm using Perforce P4V, the graphical tool, to interface with my Perforce server here at work. I have a project I added to the depot and I accidentally deleted it from my workspace on my local computer, problem is when I use the Get Revision Action (the GUI equivalent of sync), the files don't get updated, i.e. I can see the files on the server that I want, but they won't sync correctly with my local PC. It's frustrating me that the files aren't getting pulled from the server. What I'm

What are the benefits of using Perforce instead of Subversion?

喜夏-厌秋 提交于 2019-11-30 10:16:37
问题 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? 回答1: P4 keeps track of your working copy on the server. This means that Large working copies are processed much faster. I used to have a large SVN project and a simple update took 15 minutes because it had to create a tree of the local working copy (thousands of folders). File access is slow. P4 stores the information about the working

p4merge error [GIT]

↘锁芯ラ 提交于 2019-11-30 06:24:55
问题 I am trying to use p4merge with git but I am getting: Error starting p4merge: "path/myFile" is (or points to) an invalid file (this lists the BASE, LOCAL, REMOTE, and standard version of the file). Git tells me about the conflict then it asks if I wanna start the mergetool configured (p4merge) and then I get the error above. Additional note: it happens with any file! Any clue about what this is and how to fix it? 回答1: This worked for me using msysGit on windows 7: git config --global merge

Can Perforce and SourceSafe co-exist in Visual Studio?

岁酱吖の 提交于 2019-11-30 04:56:48
问题 Visual Studio 2008, to be more specific. We're testing out moving to Perforce for source control, so I'd like to install the P4SCC plugin to monkey around with. However, I'd also like to continue using SourceSafe's IDE capabilities for projects that haven't been moved over yet. Can the two co-exist peacefully, or is it one or the other for a specific install of VS? 回答1: Yes, Visual Studio supports multiple providers. The entire VS architecture is plugin based, and SCC providers are just