perforce

Find a string in Perforce file without syncing

久未见 提交于 2019-12-04 07:37:56
Not sure if this is possible or not, but I figured I'd ask to see if anyone knows. Is it possible to find a file containing a string in a Perforce repository? Specifically, is it possible to do so without syncing the entire repository to a local directory first? (It's quite large - I don't think I'd have room even if I deleted lots of stuff - that's what the archive servers are for anyhow.) There's any number of tools that can search through files in a local directory (I personally use Agent Ransack, but it's just one of many), but these will not search a remote Perforce directory, unless

Determining the last changelist synced to in Perforce

霸气de小男生 提交于 2019-12-04 07:21:33
问题 A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the changelist number into the revision info by the automatic build system. 回答1: I recommend the opposite for automatic build systems: you should first get the latest changelist from the server using: p4 changes -s submitted -m1 then sync to that change and record it in the revision info. The reason is as follows. Although

Perforce streams: Can we edit streams in perforce

匆匆过客 提交于 2019-12-04 06:59:54
问题 Can we edit the stream views once created? i have created 'main' stream with views below. View: share temp/... share ktm/... I have a child stream 'ptb_stream' created from 'main'.I have updated the views below for child stream. View: import temp/... share ktm/... which creates my child steam with only 'ktm' in it. Now, i just made the change in my child stream view 'ptb_stream' as below. View: import temp/... import ktm/... when i do that i am still seeing the folders in that child stream

Configuring Perforce scm into maven project to get latest changelist

风格不统一 提交于 2019-12-04 06:51:56
I am migrating a project to Maven and as we were used to always reference our builds by the latest change number in our Perforce SCM repository, I would like to be able to extract this information I am trying to configure Maven scm plugin via following resources: http://maven.apache.org/scm/maven-scm-plugin/usage.html for generic usage http://www.perforce.com/perforce/doc.current/manuals/p4maven/index.html First I don't understand how to make it work, so if anybody has a fully working example, I will be happy to, on my side I have tried by adding in my pom: <scm> <connection> scm:perforce

Perforce changing the default editor

廉价感情. 提交于 2019-12-04 03:48:22
I use perforce for my revision control, when I hit 'p4 change' it always opens up the list on emacs, and we all know the pain of deleting text in it. How do i change it to gedit or vim or anything else? My default text editor is gedit. On the command line, set P4EDITOR either as an environment variable or in the P4CONFIG file. From the command line, p4 set P4EDITOR="C:\File Editor\editor.exe" You can test that this was successfull by running the following command after, which should launch your desired editor. p4 workspace user3571625 I had similar problem on my Windows system. It always used

So which is better, using git-p4 or just sliding a .git directory into the working directory and having perforce ignore it?

青春壹個敷衍的年華 提交于 2019-12-04 03:38:02
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 control, I'd love to hear how you deal with notifying the main version control of changes. Specifically, with git/perforce, when you're done and ready to commit the changes to the perforce server, how do you deal with telling perforce what changes there's been? I've

What is the p4 command equivalent to something like git/hg/bzr/svn status? (Hint: not `p4 status`)

不问归期 提交于 2019-12-04 02:35:17
问题 Q: what is the perforce equivalent for the status command of other version control tools? E.g. git status or hg status or bzr status or svn status ? (Confusingly, cvs update -nq is the closest thing for that version control system.) Hint: it is NOT p4 status . First, p4 status does not tell you about files that are on pending changelists. You need to call p4 opened for that, but the output format is quite different. Second, p4 status is not always a read-only status command. I think that the

Deleting new files after a p4 revert

我只是一个虾纸丫 提交于 2019-12-04 01:58:05
My workflow for testing my changes to our source code on a remote machine is the following: 1) On local machine: Shelve changes that I'd like to test 2) On remote machine (ssh): $ p4 revert //... $ p4 sync $ p4 unshelve -s <changelist number> $ ./run_test_scripts This seems to work fine when I've only made changes to files that already exists. If I've added new files these will be created during p4 unshelve , but not deleted during p4 revert . The documentation says that this is what p4 revert does so it isn't unexpected, but causes some problems if I want to test the same files again: $ p4

Value of using Git with ClearCase, AccuRev or Perforce? [closed]

拜拜、爱过 提交于 2019-12-04 01:55:33
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am interested in the value (or lack thereof) of using a traditional SCM product (ClearCase, AccuRev, Perforce, etc.) along with Git for large projects with distributed teams. Is there a significant value-add in terms of increased

Perforce: Keeping Perforce from altering text-file format

故事扮演 提交于 2019-12-04 01:37:53
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 have CR+LF as per the DOS format. But if I P4 sync on a Unix client, it will have LF only. I need Perforce to keep the format as-is, regardless of where the Perforce client lives. That said, I do have a work-around: Set file-type as binary; and/or create a branch