perforce

Perforce merge changelist

若如初见. 提交于 2019-12-12 10:47:37
问题 I am facing an issue of merging due to bad scm practices followed. I gave a build off of a perforce branch when the latest changelist # was, lets say, 1000. Now after the dev team has submitted many more changelists the latest changelist # is 1050. Issue is that smoke test on the build failed and now I fixed it and submitted a changelist # 1051. My question is there a way to somehow merge the change made in 1051 into 1000. Or in other words create a build with all the changes upto changelist

How to keep BOM from removal from Perforce unicode files

纵饮孤独 提交于 2019-12-12 09:50:48
问题 I have converted entire branch with .NET and SQL sources to UTF-8 with BOM , having their Perforce file type changed to Unicode in the same operation. (Encoding difference might sound confusing, but in Perforce, Unicode file type denotes UTF-8 file content.) But later I have found out that Perforce silently elliminates BOM marker from UTF-8 files. Is it possible to set Perforce to keep UTF-8 BOM markers in files of Unicode file type? I can't find it documented. Perforce server is switched to

Reapplying changelist in perforce

北战南征 提交于 2019-12-12 09:37:23
问题 I'm rather new to perforce, but have quite a bit of other VCS experience... Imagine this: You submit changes (changelist 1) A colleague submits changes on the same branch, accidentally overwriting your changes. (changelist 2) I tried integrating (which P4V refuses to do since it's already integrated) and looked around for a way to just generate a patch that I could apply, but couldn't find anything. For now, I will check out the versions in question and use an external merge tool, but it

Issue while copying plugin to jenkins/plugins directory.

筅森魡賤 提交于 2019-12-12 03:38:39
问题 I am working on Ubuntu. And need to copy perforce plugin file to jenkins/plugins directory. Since the directory is owned by jenkins user; I want to logon as jenkins user to do any work in this directory. How can I get jenkins user's passowrd? Am I going in the right direction? In general what is the preferred method of copying files to a directory in Ubuntu not owned by current user. The perforce plugin does not appear on the plugin manager page; hence going the download+copy route. 回答1: To

Perforce Recently Submitted Changelists Not Showing

房东的猫 提交于 2019-12-12 03:27:45
问题 For some reason, my most recently submitted Perforce changelists are not showing up in P4Win or P4V, but when I inspect the depot directly, I can see the files that I've added and on inspecting the source files that I changed, it contains the changes that would have been contained in the submitted changelists that do not show up. I'm not sure how to either force/flush the database to show the changelists or how otherwise to recover these changelists. Now, some more details on how this

P4Sandbox files are readonly even with setting allwrite

蹲街弑〆低调 提交于 2019-12-11 23:17:04
问题 I'm trying to configure P4Sandbox so that I can follow a workflow similar to git. However, after setting up the sandbox the files in my new repo are still readonly. I've tried using p4 client and p4v to change the settings to allwrite . It looks like that change is successful, but after making it the files in the directory are still readonly. Is changing from noallwrite to allwrite supposed to change the permissions on all files managed by the repository? If so any ideas on what I might be

Perforce - removing delta per given changelist range

两盒软妹~` 提交于 2019-12-11 19:29:51
问题 I got a small question with a big background. Let me ask a short version and then expand it a little bit. Short version of my question is as follows. Imagine a situation - you have branch A with changelists 1000 to 1004. Then you make branch B from changelist 1004 and add a couple of more revisions (1005, 1006). After that you need to remove delta introduced by changelist 1002 from branch B. How can I do it? If I needed that on branch A - no problem, just Rollback to 1001 and re-integrate

Trigger to automatically remove EOL whitespace?

烂漫一生 提交于 2019-12-11 13:18:53
问题 Can one write a perforce trigger to automatically remove whitespace at submission time? Preferably in python? What would that look like? Or can you not modify files as they're being submitted? 回答1: To my knowledge this cannot be done, since you cannot put the modified file-content back to the server. The only two trigger types that allow you to see the file-content with p4 print are change-content and change-commit . For the latter, the files are already submitted on the server and for the

Is there an equivalent to flashbake (easy version control) for Perforce or Subversion

天大地大妈咪最大 提交于 2019-12-11 12:27:03
问题 Flashbake is introduced by Cory Doctorow and discussed here and its project page is here. It hides most of the complexity of git and allows simple configuration. I'm looking for something for Perforce since I have 10s of GB growing to 100+ GB in the next year of a few MB files (pictures mainly) which might not be ideal for git. I also had trouble with > 1 GB files (video) Plus I have used Perforce and svn before. EDITS: 10/26/09: This is only for me so there isn't a requirement for multiple

How can I query Perforce for a list of users who have workspaces that reference a particular file in the depot?

南笙酒味 提交于 2019-12-11 11:26:57
问题 I would like to query my Perforce server to get a list of all users who have an active workspace whose view specification references a given file in the depot. For example, given the file //root/folder/file.txt this command should return a list of the users who have an active workspace whose view specification references //root/folder/file.txt Alternatively the command could just return the workspaces that reference the file, and then it should be straight forward to get the list of owners of