perforce

Is there a bi-directional bridge between p4 and git?

时光毁灭记忆、已成空白 提交于 2019-12-05 02:02:09
Is there a good (reliable and automated) method for moving git changes between perforce and git for multiple users? git-p4 seems to handle the single user case well but I'm looking for a multi user option. We are currently moving from many different source control systems to one; git. We may either need to move from git to perforce and provide a good way to showcase git to the perforce. For ether case a bi-direction bridge between the two will be essential. Is there something out there that provides bidirectional traffic between git and p4 for multiple users? Frankly, you're better off just

How to get --detect-branches to work with git-p4?

北战南征 提交于 2019-12-05 01:30:28
My p4 repository has a structure similar to: //depot/project/branch1 //depot/project/branch2 //depot/project/branch3 ... etc However, when I use git-p4 to clone "project", all 3 branches are not considered as branches and all get cloned into the single master branch. This is how I'm invoking git-p4 : git-p4 clone --detect-branches //depot/project I was expecting git-p4 to create a git database for " project " with three branches, and the root of the project would be mapped to the portion of the path after the branch name (for example: if //depot/project/branch1 has a subdirectory called " lib

In Perforce, how do I find the local path for files in a pending changelist?

倾然丶 夕夏残阳落幕 提交于 2019-12-05 01:24:47
Given a Perforce changelist number, I want to find the local path of all files in that pending changelist. p4 describe changelist -- gets me the depot path for files in the changelist (method 1) p4 opened -c changelist -- gets me the depot path for files in the changelist (method 2) p4 have -- gets me the depot path and local path for all files that have previously been submitted Using a combination of p4 describe and p4 have , I can find the local paths for all files in the changelist that have previously been submitted to Perforce (and are opened for delete or edit ). But what about files

Perforce troubles “file not under client's root” error message

吃可爱长大的小学妹 提交于 2019-12-05 00:50:22
I am adding a project to perforce via VS2010 but I keep getting this error 'file' not under client's root for all the files in the project. I can't seem to figure this out. Here is what I am doing: 1) Open VS2010 project which is not in perforce yet. 2) I select add the solotion to perforce (from File > Source Control > Add Solution menu). 3) I select a new workspace. It brings up the properties of the workspace. The root folder is default to c:\Users\My.Name. I change this to the folder where my project is. I also change the view so it points to say depot\main\new_project. It seems to have

Is there an equivalent to git stash in perforce?

六眼飞鱼酱① 提交于 2019-12-04 23:22:32
I've dug through the interwebs all I can, and I can't for the lack of me find any way of easily stashing or branching locally with perforce. I know of the git wrapper for perforce, but it really doesn't seem too well developed or reliable from everything I've read about it. VonC Regarding branching, I doubt you can "branch" locally in Perforce, nor could you natively stash. Git is based on a graph of commits (a DAG - Directed Acyclic Graph actually), which will display only the content of a commit (trees and blobs) Perforce is a linear VCS , based on composition of selection rules (it will

P4 - change workspace for client

我是研究僧i 提交于 2019-12-04 22:53:09
I want to change the workspace client using the p4 command line but i don't know if its possible. You can create, delete or edit workspace using the p4 workspace command, but i want to change the current workspace with a .bat method. Exemple : p4 -c MyClient changeworkspace myNewWorkspace If you know in first step if it's possible. Thanks. Either set the P4CLIENT environment variable to the name of the workspace you want to be your current workspace, or consistently pass that workspace name as the value of the -c flag on your p4 commands: http://www.perforce.com/perforce/doc.current/manuals

Using git-p4 to setup a git clone of a perforce client

心不动则不痛 提交于 2019-12-04 21:25:24
I have a perforce client which maps several perforce paths into my local client. These perforce paths are for libraries and the main code line. How do I use git-p4 to setup a clone of the entire client in a separate directory? From what I see git-p4 can only clone specific depot paths. I would like to clone an entire client: suppose my perforce client is test_client. I would like to do: cd git_area cp ../perforce/test_client/.perforce . git-p4 clone or something similar which will pull in all the directories into this separate git directory. I believe that most git-p4 operations work on a

Perforce with dynamic ip

流过昼夜 提交于 2019-12-04 19:16:55
I've set up a perforce server on an old always-on laptop which is always assigned a reserved address by the router. I have have an account at no-ip.com, which sends to my router, which in turn redirects port 1666 requests to this laptop. when i try to set p4port to this no-ip.org address, that part is fine, but when i run p4d i get: Perforce server error: Listen USERNAME.no-ip.org:1666 failed. TCP listen on USERNAME.no-ip.org:1666 failed. bind: USERNAME.no-ip.org:1666: WSAEADDRNOTAVAIL Whereas if i just set the p4port to 192.168.0.6 i can access the server from behind the network using this

$id: name of file, date/time creation Exp $

允我心安 提交于 2019-12-04 19:05:35
问题 Frequently I come across the following statements in C/C++ source code: $Id: lzio.c,v 1.24 2003/03/20 16:00:56 roberto Exp $ $Id: file name, version, timestamp, creator Exp $ Have you got any idea which software produces those "signatures"? 回答1: Version control systems such as CVS can produce such tags. 回答2: Keyword substitution in subversion produces this sort of information, in particular Id: Id This keyword is a compressed combination of the other keywords. Its substitution looks something

How to retrieve submitted changelists in a day using Perforce Python API

你离开我真会死。 提交于 2019-12-04 18:46:25
I am new to Perforce Python API and still finding my way through it. So far I have been able to retrieve changelist information like number, desc etc, if I provide the file name. I am trying to get a list of all the submitted changelists for a specified date/time range so that I can gather information like files changed and description of each changelist etc. Is there a way to do this using the API? Thanks From a read of the less than extensive P4Python documentation and a question from the Perforce forum , this code might do the trick but bear in mind it is completely untested** so caveat