perforce

Where is line based SCM blame information stored?

倾然丶 夕夏残阳落幕 提交于 2019-12-20 05:52:43
问题 I can see line based SCM blame information in UI, but where is it stored and how can I retrieve through web API? I am using Perforce plugin. The issue is that the Perforce plugin finds the blame information from history, and because of that if a user has created a debt in a past branch, it still shows on his name in the current branch analysis. The Perforce plugin does not have any such way to disable looking into history beyond the current branch. I need to find another way to find out, if

Blue question mark on files in solution explorer

ε祈祈猫儿з 提交于 2019-12-20 02:38:17
问题 I often get blue question marks on files in my VS2012 Solution Explorer when opening a solution bound to Perforce through P4VS. Looks like something is having trouble to "synchronize" with the depot/workspace/whatnot. Hitting "Refresh View" always solves the issue but I'm growing tired on doing this everyday: This is my VS version: Microsoft Visual Studio Professional 2012 Version 11.0.61030.00 Update 4 And P4VS: 2014.1.85.4506 This is persistent across P4VS versions for a few months now, and

P4.Net and P4CHARSET

﹥>﹥吖頭↗ 提交于 2019-12-20 02:29:35
问题 I'm using P4.Net to connect to my non-unicode server however some commands i run fail with: "Unicode clients require a unicode enabled server." how do i change the P4CHARSET to none in P4.Net? I've tried P4Connection p4 = new P4Connection(); p4.Charset = "none" p4.Connect() i've also tried changing the Charset just before the p4.Run command: p4.Charset = "none" p4.Run("where", "c:\\some\\random\\dir"); i've tried setting the Charset to "none", null and "". if i try passing global options to

git clone multiple p4 paths in one git repo

為{幸葍}努か 提交于 2019-12-19 06:30:17
问题 I know that if I need to clone a perforce an existing p4 repository using command git p4 clone //depot/path/project But what if I want to multiple p4 paths into one git repo? say I have the following structure //depot---/Path1----/APath/... | | | | | --/BPath/... | | ---/Path2----/CPath/... | | ---/Path3 I only want to clone files under //depot/Path1/APath/ and //depot/Path2/CPath/ in my local directory ~/Desktop/mylocalRepo/ how to do it? 回答1: The solution that I found was clonning different

How to create a perforce empty changelist from command line

耗尽温柔 提交于 2019-12-19 03:13:20
问题 i'm trying to create an empty changelist from command line using the command p4 change -i but seems that this command does nothing, i don't get any error/success message, the command line simply return nothing and i have to kill it with ctrl+c. My p4 client works, i'm able to see all my info and doing all other operations correctly, seems to have problem only to create a new pending changelist. Anyone experienced the same issue? P.s. I've checked the P4V way to create an empty changelist and

git p4 submit fails

霸气de小男生 提交于 2019-12-19 03:12:21
问题 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

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

◇◆丶佛笑我妖孽 提交于 2019-12-18 21:27:11
问题 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. 回答1: The Perforce support web site explains how to do this: Perforce Knowledge Base: Branching work in progress. It would be nicer if

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

半城伤御伤魂 提交于 2019-12-17 10:14:57
问题 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. 回答1: 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

How to move a perforce depot between two different servers such that revision history is copied but user info and workspaces are not?

断了今生、忘了曾经 提交于 2019-12-13 17:13:34
问题 I need to copy a depot from one Perforce server to another. The file revision history needs to be intact but the user information and workspace information can not be copied to the new server. I've tried a standard checkpoint creation and restore procedure, but if there exist users or workspaces with the same name on both servers, the source server will overwrite this info on the destination server. This is pretty bad if those user accounts and workspaces do not have exactly identical details

How to reconcile newer workspace files with depot in Perforce?

孤街醉人 提交于 2019-12-13 16:33:02
问题 I have a situation where my depot is saying it has the latest version of a bunch of different files but my local workspace actually has newer revisions. My tools (P4V and VS plugin) are incorrectly telling me that everything is up-to-date. I can prove this is the case because if I check out the file, make no changes, and submit , the changes are committed and the history appears correct and get latest operations on other machines pull the correct version of the file. This isn't really a