I've written some python tools which work with the p4 command line to work on files I have opened in P4Win. However it seems like the p4 view can become different to the P4Win view. I'm not quite sure how to make them the same.
...
Is there a simple way to convert a (large) list of p4 moves to p4 integrates? There are a lot of pending modifications to the moved files, so just reverting and instead integrating isn't an option.
Perforce won't let you just revert the deleted file (which would leave the desired integration behind).
...
I'm trying to learn Perforce and want to delete a file from the depot(easy to do with p4 delete, p4 submit), but that deletes it from the client machine dir structure as well. I want to keep my local file in my directory intact.
The only way I can see to do this would be to move it out of the hierarchy that is under Perforce control ...
Using P4V 2009.2.
I have used P4Win in the past, but this is a new setup for me.
The problem is that the files I have checked out disappear from the changelists, so I cannot check them in.
To reproduce:
Check out a file, make a change to it.
Go to the 'pending changelist' tab.
There will be a + sign on the default changelist.
...
We use MediaWiki for user documentation. As the sole author, I can build and manage new versions of the wiki in order to support software version releases.
I'm looking for recommendations on how to manage the switch to a new MW instance (to coordinate with new software release). This is how I do it now:
MW instance at /wiki supports p...
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.
...
I know this has come up before, but there was little in the way of day to day personal experiences in the posts I saw. Only a couple of responses.
I'd love to hear from people that use git-p4, or have used git "under the covers" in a Perforce repo, or preferably both.
And for those people who just use git underneath another version contr...
So, virtually cannot use the the perforce command line for anything other than syncing.
My workspace root is mapped to C:\
Here's a line of my client spec:
//claims1.0/main/... //cthiel/code/claims1.0/main/...
Any time I fire up cygwin and attempt to work with any files in my depot (such as p4 edit ), I get an error along the lines of...
I want to have auto-generated version number in format of 'x.x.x' or something similar to 'git tag' in Perforce. Any ideas?
...
So,
I've been driven nuts enough by Perforce I'm now attempting to use a git repo beneath the covers.
My question is this:
When I'm futzing around with the files via my git repo, is there an easy/automatic way for me to keep track of these in perforce? I've looked into git hooks, and there doesn't seem to be one that when I commit a...
Is there a way to tell Perforce to leave text files alone without setting the file-type as binary? Or barring that, is there a way to tell the Perforce client to diff binaries? Binary usually isn't desirable, because I lose the ability to diff.
To clarify: If I edit and make changes to a *.txt file on my window client, newlines will...
I would like to know how to speedup the perforce auto resolve when doing integration (merge yours and theirs if no conflicts exists).
Currently is taking hours for ~5000 files when running it using a proxy server even if the proxy server has the files pre-cached.
Also p4v interface doesn't give you any hint regarding the progress of th...
In Perforce P4V, I'd like to do a search for all changelists that have files from a particular set of folders, that all have "index" in the folder name, and also have another folder at the beginning. For instance, I want to see all changelists against any files in folders like these:
\depot\abc\def\table\index*.*
\depot\abc\ghi\table\...
This is very similar to:
http://stackoverflow.com/questions/1681058/vim-auto-commands-writing-a-read-only-file
Except that in addition to the solution presented there, I want vim to only ask for confirmation if the file is still read-only.
In other words, if I do :w, I do not want vim to say that the file is read-only. It should autom...
When creating partial builds for a project, I usually diff the project folder latest revision against a production label. Then I have to manually add all the changed/added files to a temporary folder before copying it to production.
Is there a way to automate this?
For example, if we need to update a client website, we only want to se...
I want to safe resolve all the files in a pending changelist.
Currently, the only way I know to do this is to pass p4 a list of files.
SET CHANGE_NUMBER=default
SET CHANGE_FILES=files.txt
DEL %CHANGE_FILES%
for /f "tokens=1 delims=#" %%a in ('p4 opened -c %CHANGE_NUMBER%') DO ECHO %%a>>%CHANGE_FILES%
p4 -x %CHANGE_FILES% resolve -as
...
I'd like see a visual diff of a branched file. So I do this
p4 diff2 -b branchname main.cpp
One problem... it's not visual and external diff isn't supported.
http://www.perforce.com/perforce/doc.current/manuals/cmdref/diff2.html
p4 diff2 does not use the diff program specified by the environment variable P4DIFF.
The diff algorithm ...
Hi All,
We are considering purchasing Perforce and OnTime for SCM and Bug Tracking respectively when discovered that with Visual Studio 2010 we'll get both Source Control & Bug Tracking integrated into it and for free (if you are a MSDN subscriber).
More in general, does it still worth to invest in these standalone and expensive tools?...
Possible Duplicate:
C++ IDE for Linux?
I usually program on Windows with Visual Studio, and I use Perforce for Source code control. Recently I ported a large application (250 kLOC) to Linux and was looking for something similar to Visual Studio to program in on Linux. What I wanted in the C++ IDE was three things: integrated s...
The git-bisect provides hooks to perform a binary search on revisions and figure out which change broke the design. Is there an equivalent script for Perforce? I did SO and Google searches with no luck.
Update Mar 1 2010: As Douglas Leeder correctly pointed out, this is easy with a linear history. However we do have multiple branches...