perforce

Where is line based SCM blame information stored?

故事扮演 提交于 2019-12-02 08:14:20
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 the debt is really introduced in this branch or not. The real question here is how to find out this: I

have to set port every time in command line when trying to trigger any Perforce command

时光怂恿深爱的人放手 提交于 2019-12-02 05:37:21
问题 I'm new to Perforce, need to work in command line, i'm so confused why all the commands on the tutorial websites all write like $ p4 command, but I have to add the port every time when try to trigger that command, for an example, for $ p4 sync, i have to type $ p4 -p myhost:myport sync every time even after I logged in, if i missed the host and port, like if i just typing $ p4 sync, the program will just hang in there... anyone can provide some suggestions? 回答1: Type: p4 set P4PORT=myhost

How to install the Perforce plugin in Eclipse 3.8

十年热恋 提交于 2019-12-02 05:03:14
问题 How do I install the Perforce plugin (P4Eclipse) in Eclipse 3.8? The Perforce Plugins & Integrations page only lists Eclipse 4.2 through 4.4. Eclipse 3.8 is the version provided in Ubuntu 14.04 repositories. 回答1: The latest versions of P4Eclipse no longer supports Eclipse 3, but an older version (2013.1) is still available if hidden. Choose Help --> Install New Software. After "Work with:" enter http://www.perforce.com/downloads/http/p4-eclipse/install/3.8 Under Perforce Team Provider Core

Git详解之八 Git与其他系统

亡梦爱人 提交于 2019-12-02 04:12:07
Git 与其他系统 世界不是完美的。大多数时候,将所有接触到的项目全部转向 Git 是不可能的。有时我们不得不为某个项目使用其他的版本控制系统(VCS, Version Control System ),其中比较常见的是 Subversion 。你将在本章的第一部分学习使用git svn ,Git 为 Subversion 附带的双向桥接工具。 或许现在你已经在考虑将先前的项目转向 Git 。本章的第二部分将介绍如何将项目迁移到 Git:先介绍从 Subversion 的迁移,然后是 Perforce,最后介绍如何使用自定义的脚本进行非标准的导入。 8.1 Git 与 Subversion 当前,大多数开发中的开源项目以及大量的商业项目都使用 Subversion 来管理源码。作为最流行的开源版本控制系统,Subversion 已经存在了接近十年的时间。它在许多方面与 CVS 十分类似,后者是前者出现之前代码控制世界的霸主。 Git 最为重要的特性之一是名为 git svn 的 Subversion 双向桥接工具。该工具把 Git 变成了 Subversion 服务的客户端,从而让你在本地享受到 Git 所有的功能,而后直接向 Subversion 服务器推送内容,仿佛在本地使用了 Subversion 客户端。也就是说,在其他人忍受古董的同时,你可以在本地享受分支合并,使暂存区域

have to set port every time in command line when trying to trigger any Perforce command

旧街凉风 提交于 2019-12-02 03:33:44
I'm new to Perforce, need to work in command line, i'm so confused why all the commands on the tutorial websites all write like $ p4 command, but I have to add the port every time when try to trigger that command, for an example, for $ p4 sync, i have to type $ p4 -p myhost:myport sync every time even after I logged in, if i missed the host and port, like if i just typing $ p4 sync, the program will just hang in there... anyone can provide some suggestions? Type: p4 set P4PORT=myhost:myport From that point on, "myhost:myport" will be used as the P4PORT when you run commands. If you use

perforce diff to git

别来无恙 提交于 2019-12-02 03:09:47
问题 Taking perforce diff when I try to patch this using git am , it says "Patch format detection failed". How do I get my changes from perforce and apply it to git branch? This is the first few lines of diff ==== //depot/a.c#162 - /asdf/a.c ==== 4326a4327,4642 > /* > *---------------------------------------------------------------------------- > * > * -- 回答1: Make sure you produce the diff with p4 diff -du to get the unified diff format, which works much better with tools like patch, and is (I

P4.Net and P4CHARSET

余生颓废 提交于 2019-12-01 22:48:28
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 the p4.Run command it doesn't work either. ie. p4.Run("-C none where", "c:\\some\\random\\dir"); fails

Blue question mark on files in solution explorer

岁酱吖の 提交于 2019-12-01 20:16:33
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 seems to be affecting sometimes individual files, sometimes entire projects, with no apparent pattern.

What is the p4 command equivalent to something like svn status [duplicate]

拜拜、爱过 提交于 2019-12-01 15:21:55
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How to find untracked files in a Perforce tree? (analogue of svn status) I want to know what p4 command that will show me which files have changed, which files are not checked in, etc. 回答1: If you're using perforce properly, "p4 opened" is what you're looking for. It will tell you what files you have opened for change. If you want to be able to change files locally, THEN open them for edit (or delete, etc.,)

Git - p4merge

风格不统一 提交于 2019-12-01 08:58:23
Windows 下配置 先确保 p4merge 的路径(默认: C:\Program Files\Perforce\ )在环境变量中 C:\Users\zjffu>where p4merge C:\Program Files\Perforce\p4merge.exe C:\Users\zjffu>path ...;C:\Program Files\Perforce\;... 然后 git config --global diff.tool p4merge git config --global difftool.p4merge.cmd 'p4merge "$LOCAL" "$REMOTE"' git config --global merge.tool p4merge git config --global mergetool.p4merge.cmd 'p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED"' 使用 git difftool git mergetool 来源: https://www.cnblogs.com/jffun-blog/p/11674572.html