Commit Graph

21 Commits

Author SHA1 Message Date
paul chipchase
64efab556e Fix more compilation warnings in P4VUtils.
#rb Sebastian.Nordgren
#rnx
#preflight 628c85f58673efbf3c0a5e3f

- Added checks when parsing xml to make sure that expected nodes/lists were found and are not null.
- Response was assigned as null, but nothing was checking for this. The initial value has been changed to an empty string which wioll invoke the user cancelling the operation as the default behaviour.
- StreamReader.ReadToEnd is a blocking call in an async method. Replaced with await StreamReader.ReadToEndAsync.

[CL 20346208 by paul chipchase in ue5-main branch]
2022-05-24 07:14:12 -04:00
paul chipchase
0e85c4730c Fix P4Utils to compile with the changes to the logging API in CL 20245803
#rb Ben.Marsh
#rnx
#preflight 628b8e06693c5e1de2797dd6

[CL 20326531 by paul chipchase in ue5-main branch]
2022-05-23 09:49:24 -04:00
Josh Adams
6f60e61383 - Some p4vutils code changes to match the already checked ion binaries
#rb trivial
#preflight skip

[CL 20248689 by Josh Adams in ue5-main branch]
2022-05-17 15:02:27 -04:00
Josh Adams
a6c5a6ccd9 - Updated p4vutils to dotnet6, so we can use OperatingSystem nicely
- Will compile on Mac and Linux now
- Mac replaced the WinForms functionality with AppleScript
- Linux will compile be have reduced functionality
- Fixed up paths for p4v settings and dotnet location
- Added binaries and installer scripts for all 3 platforms - won't need UGS to install, will copy to user-library location (may need some adustment on Linux, will address after)
#rb will.damon
#preflight skip

[CL 20244727 by Josh Adams in ue5-main branch]
2022-05-17 12:00:08 -04:00
paul chipchase
73e85f5e17 Extend P4VUtils with a new command that allows the user to submit&virtualize package files (for projects with asset virtualization enabled)
#rb Ben.Marsh
#rnx
#jira UE-143675
#preflight skip

### P4VUtils
- Add a new submenu "UESubmit" for commands related to the submission of files and changelists
-At the moment the submenu only has a single command SubmitAndVirtualizeCommand

### SubmitAndVirtualizeCommand
- This command is used to run the asset virtualization process over all of the files in a changelist before submitting it using the following logic:
-- Find all package files in a changelist
-- Sort the files by project
-- Find the engine installation associated with each project
-- Build and run the stand alone virtualization tool (if needed) and pass it the packages for the project
-- If the virtualization process succeeeded for all projects we can submit the original changelist, other wise print errors to the p4v terminal.
- In most cases all of the packages in a changelist will be under a single project, but the command should be able to cope with many packages from many different projects using many different engine installations.
- Note that unlike a normal submit, virtualizing a package can change it on disk (by removing the payload data) which means we will probably run into problems where a running instance of the editor has access locks on the file and they cannot be edited. At the moment this command and the stand alone tool will just error, there is no tool<->editor communication protocol set up to request that the editor release the package file. This will be addressed as a future work item.
- This is the first pass of the command, there are a number of non-essential todo comments left in the code that will be addressed based on feedback from the end users.

[CL 19752487 by paul chipchase in ue5-main branch]
2022-04-14 04:26:33 -04:00
Josh Adams
83fb2b68f8 - Fix P4VUtils to compile with latest EpicGames.Core
#rb paul.chipchase
#jira none
#preflight skip

[CL 19739667 by Josh Adams in ue5-main branch]
2022-04-13 10:27:29 -04:00
Ben Marsh
78ca05b4ce P4VUtils: Enable static analysis.
[CL 18449401 by Ben Marsh in ue5-main branch]
2021-12-13 17:09:39 -05:00
Maxime Mercier
1a49c53b87 New perforce tools
Data tools:
* Convert data to local writable -> Convert All data in changelist or all selected data files to local writable

Unshelving tools:
* Unshelve to current revision -> Remembers revision all files you are about to unshelve and if the revision is older, will sync to saved revision
* Unshelve and make data writable -> Unshelve changelist but for data will make them writable locally

#jira none
#review-17681604
#rb Andy.Firth Brandon.Dawson
#preflight skip

#robomerge 5.0
#robomerge FnMain

[CL 18039467 by Maxime Mercier in ue5-main branch]
2021-11-03 15:49:48 -04:00
andrew firth
83fe64ea47 [P4VUtils] - add Fast reconcile options for code + all - performs a reconcile on files in P4 that are writeable but NOT checked out
#review-17096558 @Ben.Marsh @Brandon.Dawnson
#rb Ben.Marsh

[CL 17096670 by andrew firth in ue5-main branch]
2021-08-07 22:49:04 -04:00
aurel cordonnier
118061ae2b Renaming p4vutil tool to make it more clear
#rb JeanMichel.Dignard
#rnx

[CL 17060075 by aurel cordonnier in ue5-main branch]
2021-08-04 17:18:20 -04:00
aurel cordonnier
ab8e255930 P4 Blame tool for P4V (requires input of the line number)
#rb marc.audy, ben.marsh
#jira none

[CL 16852242 by aurel cordonnier in ue5-main branch]
2021-07-14 13:23:58 -04:00
andrew firth
443e5c0c54 [P4VUtils] - add folders for tools.
#review-16605487 @Ben.Marsh

#rb Ben.Marsh

[CL 16622456 by andrew firth in ue5-main branch]
2021-06-10 09:32:54 -04:00
andrew firth
cabe530066 [P4VUtils] - small feedback changes, addition of refresh and shortcut for all custom tools.
- snapshot now more descriptive
- backout now more descriptive
- preflightAndSubmit reverted to old behavior, new command to MoveWriteableFilesthenPreflightAndSubmit added
#review @Ben.Marsh

[CL 16596338 by andrew firth in ue5-main branch]
2021-06-08 19:06:41 -04:00
Ben Marsh
e1c10e2062 P4VUtils: Fix warning.
[CL 16569107 by Ben Marsh in ue5-main branch]
2021-06-07 08:25:35 -04:00
andrew firth
60b131617e [P4VUtils] - add snapshot & backout
backout command, performs an undo then convert to edit locally.
snapshot creates a shelved snapshot of a CL as a local temporary backup
#review-16556947 @Ben.Marsh @Marc.Audy
#rb ben.Marsh

[CL 16565955 by andrew firth in ue5-main branch]
2021-06-06 12:03:10 -04:00
aurel cordonnier
bb332346a9 p4 custom tool for P4VUtils to find where the last edit occurred for a specific file
[CL 16474021 by aurel cordonnier in ue5-main branch]
2021-05-26 15:43:42 -04:00
Ben Marsh
0720d5369e P4VUtils: Add a compile command, which builds files in the selected changelist as non-unity. Automatically detects which project the files are in, etc...
#rb none
#fyi jeanfrancois.dube

[CL 15847298 by Ben Marsh in ue5-main branch]
2021-03-28 19:43:37 -04:00
Ben Marsh
3eb7a78da1 P4VUtils: Add cherry-pick, and convert-to-edit commands.
#rb none
#rnx

[CL 15252076 by Ben Marsh in ue5-main branch]
2021-01-28 18:04:48 -04:00
Ben Marsh
6783a4319f P4VUtils: Add a command to merge a changelist to the current stream.
#rb none
#rnx

[CL 15249891 by Ben Marsh in ue5-main branch]
2021-01-28 16:51:59 -04:00
Ben Marsh
40f518e81c P4VUtils: Handle corrupt XML files gracefully.
#rb none
#rnx

[CL 15159678 by Ben Marsh in ue5-main branch]
2021-01-21 17:41:00 -04:00
Ben Marsh
b70807aa77 Add tool for P4V extensions. Currently supports edigrate, describe, and Horde preflight commands.
#rb none

[CL 15140536 by Ben Marsh in ue5-main branch]
2021-01-19 18:51:24 -04:00