Commit Graph

233 Commits

Author SHA1 Message Date
jordan hoffmann
f46746f35f [CrashFix] Fix Dereference Null
#rb trivial
#pf none

[CL 24456485 by jordan hoffmann in ue5-main branch]
2023-02-28 20:40:09 -05:00
jordan hoffmann
5abf21121d [BugFix] Modified actors are not diff'ing correctly with one file per actor
#rb dan.oconnor
#rb francis.hurteau

[CL 24451087 by jordan hoffmann in ue5-main branch]
2023-02-28 16:07:32 -05:00
lauren barnes
d36592a0cc Create revision control context object for menu creation
[REVIEW] [at]wouter.burgers, [at]zach.rammell
#preflight 63f56e1791018822cc2f9055
#jira UE-178131
#rb Wouter.Bougers, Marco.Anastasi, Zach.Rammell

[CL 24371853 by lauren barnes in ue5-main branch]
2023-02-22 17:56:16 -05:00
christian savoie
5d51c65f1f Auto select items in revert window to reduce redundant actions for users.
#tests used menu to revert assets

[CL 24287015 by christian savoie in ue5-main branch]
2023-02-17 13:47:56 -05:00
zach rammell
f1c0db9cb8 Disallow unsaved changes to be discarded from unsaved levels.
This previously resulted in the level being deleted irreversibly.

#jira UE-169781
#rb brooke.hubert, ronald.koppers
#lockdown jeanmichel.dignard
#preflight 63ebff59514832b24268590f

[CL 24224931 by zach rammell in ue5-main branch]
2023-02-14 20:25:02 -05:00
Joe Kirchoff
c1f997087d Fix remaining UnrealGame Win64 V3 pathing issues
#rnx
#rb trivial
#preflight 63ec10e47e76998e9afe7aa7

[CL 24222870 by Joe Kirchoff in ue5-main branch]
2023-02-14 18:12:00 -05:00
lauren barnes
b254a402bd Change to capture weak pointer to the revision control UI in the dynamic menu entry.
#rb JeanMichel.Dignard
#preflight 63e426dbea7ad686983b4f6f

[CL 24092965 by lauren barnes in ue5-main branch]
2023-02-09 00:36:32 -05:00
wouter burgers
0aa122ff5c SourceControl: Added notification if sync fails when getting latest, similar to the warning shown by FSourceControlWindows::PromptForCheckin for checkin fails.
In addition, I refactored AssetViewUtils::SyncPathsFromSourceControl somewhat.
- Added alternative (preferred) way to get affected files/packages using the FSyncPreview operation as opposed to querying the AssetRegistry.
- Added support for hot reloading the world if one of its external packages (actor/object) got synced so those changes are reflected in the viewport.
- Added support for passing in either content paths or absolute paths to sync.

- Deprecated the 'bIsSyncLatestOperation' parameter from SyncPackagesFromSourceControl.

Note that SyncPackagesFromSourceControl now has a single internal caller (FAssetSourceControlContextMenuState::ExecuteSCCSync).
Note that SyncPathsFromSourceControl now has a single internal caller (FSourceControlWindows::SyncLatest).

[REVIEW]
#preflight 63e3a014244dc45a201c918d

[CL 24074948 by wouter burgers in ue5-main branch]
2023-02-08 12:17:26 -05:00
marco anastasi
0e8453ff5e Added context menu option to revert assets in the submit changes dialog
#preflight 63dcf50478716a01e80bc3b8
#rb wouter.burgers, stuart.hill, brooke.hubert
[FYI] manuel.lang, jeansebastien.guay

[CL 24051196 by marco anastasi in ue5-main branch]
2023-02-07 12:07:01 -05:00
lauren barnes
ad3e6dd345 Converting Revision Control History window to use UToolMenu for its context menu
#rb Aditya.RaviChandran, Zach.Rammell
#preflight 63e13111b923ed4bddf04af6

[CL 24035663 by lauren barnes in ue5-main branch]
2023-02-06 14:21:35 -05:00
wouter burgers
192829d351 SourceControl: Refactored UsesCustomProjectDir / GetSourceControlLocations usage pattern.
[CL 23965223 by wouter burgers in ue5-main branch]
2023-02-02 03:44:18 -05:00
zach rammell
bdc16077f3 View Changes UI visual improvements
- Side panel no longer compressed
- Name changed to "View Changes"

#jira UE-175840
#rb ronald.koppers
#preflight 63daeceb4965eb8c33d456e5
#lockdown jeanmichel.dignard

[CL 23961626 by zach rammell in ue5-main branch]
2023-02-01 19:44:37 -05:00
aditya ravichandran
1caacb933d Fix issues with icon color/padding in the changelists window
#rb zach.rammell
#jira UE-175837
#preflight 63daeaa54965eb8c33d3ba9f

[CL 23959565 by aditya ravichandran in ue5-main branch]
2023-02-01 17:54:20 -05:00
zach rammell
02dbe448a4 Fix crash in View Changes UI
#jira none
#rb jamie.dale
#preflight 63d8760f3656ea96dc3b12c2
#lockdown jeanmichel.dignard

[CL 23924091 by zach rammell in ue5-main branch]
2023-01-31 01:29:09 -05:00
zach rammell
1edfb3ed31 Unsaved Assets in Changelist Window
#jira UE-169781
#preflight 63d4247a5354589b5c022e4c
#rb brooke.hubert
#lockdown jeanmichel.dignard

[CL 23923988 by zach rammell in ue5-main branch]
2023-01-31 01:26:50 -05:00
marco anastasi
b29f599449 * Refactored Sync Latest operation to improve performance
* Sync Latest no longer listing and reloading all packages when the source control provider provides a sync preview functionality. When a Sync Preview is available, Sync Latest unloads only the files that are going to be overwritten by the sync operation, and then reloads them and the world

* Refactored Revert All operation to improve performance
* Revert All no longer lists and reloads all packages when the source control provider provides a sync preview functionality. Instead it unloads only the files that may be overwritten by the revert operation (i.e. submittable files), and then reloads them and the world
* Replaced RevertAndReloadAllPackages with RevertAndReloadWorld, no longer listing and reloading all packages (see https://p4-swarm.epicgames.net/reviews/23244245/)

This review is a combination of the two archived reviews https://p4-swarm.epicgames.net/reviews/23736137 and https://p4-swarm.epicgames.net/reviews/23736282

#rb wouter.burgers, stuart.hill, brooke.hubert, francis.hurteau
#preflight 63c9c7786a00f3cc8ead6779

[CL 23796067 by marco anastasi in ue5-main branch]
2023-01-20 15:31:16 -05:00
stuart hill
ecd02d133c For Source Control systems which don't support Uncontrolled Changelists, disable the entire Uncontrolled Changelists module, rather than just UI elements (as was done in CL 23490912).
This prevents uncontrolled icons being shown in the outliner when not supported by the current source control.

#rb brooke.hubert, Marco.Anastasi, wouter.burgers
#preflight 63c54df6b0652247509d67bb

[CL 23729713 by stuart hill in ue5-main branch]
2023-01-16 10:48:10 -05:00
wouter burgers
25ed23158a SourceControl: Changelist #22880108 added support to the Submit window with support for exposing the diff functionality yes/no, depending on the SourceControl provider used. This changelist does the same for the History window.
#preflight none

[CL 23674935 by wouter burgers in ue5-main branch]
2023-01-13 02:29:22 -05:00
patrick boutot
2fc7dab67f Add the ellipsis at the end of the description when the changelist description is too long to be displayed correctly.
[FYI] chris.morrison

[CL 23662529 by patrick boutot in ue5-main branch]
2023-01-12 09:46:14 -05:00
paul chipchase
7c4a834261 Change TryVirtualizePackages/TryRehydratePackages to return the corresponding results structure rather than an enum value.
#rb Per.Larsson
#jira UE-169626
#rnx
#preflight 63bd670a71079a8d1c0e837b

- Since the API was forcing the caller to pass in a results structure to be filled in, we might as well make it the return value.
- Added a ::WasSuccessful method to the results structures that can be used instead of checking if the result had errors or not.
- Remove the reset method from FVirtualizationResult/FRehydrationResult as they no longer need it.
- The older deprecated methods still use the results enum, so we cannot easily deprecate those enums yet.

[CL 23626072 by paul chipchase in ue5-main branch]
2023-01-10 09:15:11 -05:00
brooke hubert
a3e3f4240b Disable menu option for view changelists window if changelists are not supported by the current provider
#rb lauren.barnes
#preflight 63b594e5ff7b9ad703e6443d

[CL 23580246 by brooke hubert in ue5-main branch]
2023-01-04 15:48:40 -05:00
stuart hill
894c619283 In the View Changelist window, hide the "Assets to check for reconcile" text if 'uncontrolled' changelists are not supported.
#rb brooke.hubert
#preflight 639c85052540a78d2741c962

[CL 23539911 by stuart hill in ue5-main branch]
2022-12-16 13:43:53 -05:00
paul chipchase
80beaf7cc8 Add a new overload to IVirtualizationSystem::TryVirtualizePackages, which takes additional options (via a bitfield enum) and returns more info about the resulting process. The original version has been drepcated.
#rb Per.Larsson
#jira UE-169626
#rnx
#preflight 639c4112012902cb8db43e13

- This allows us to provide the user with more ways to customize the virtualization and return more detailed info about it if the calling code wishes to log additional info. In both cases we can extend the options and the data returned without changing the API.
- Previously if we virtualized a package that was not checked out in revision control we would warn the user and then skip updating the package file on disk. This means the payloads would be uploaded but the user would be left with no local changes. Since sometimes we know we don't need to check out any package (virtualizing the packages in a change list for example) we don't want to always incur the cost of polling reivision control to see which packages do need checking out. This is why we now allow the caller to request package files be checked out via the new options enum EVirtualizationOptions.
-- If the EVirtualizationOptions::Checkout flag is provided we will poll the revision control status of all package files and then check out those which need it.
-- We still check if packages can be modified and warn the user if they can't, as package files could be locked in other ways.
- Added a new utility function to SourceControlUtilties to make it easier to check out packages. There is similar functionality elsewhere in the code base but the virtualization module is too low level to make use of it.
- Updated existing code that calls ::TryVirtualizePackages and add cases of ''using namespace UE::Virtualization' where required to improve readability.
- The UnrealVirtualizationTool now supports a new cmdline option "-checkout" that can be used when virtualizing packages. This will checkout any package that was actually virtualized so the result can be saved back out to the workspace domain. This means we no longer require the caller to have checked out the packages before running the tool.

[CL 23536832 by paul chipchase in ue5-main branch]
2022-12-16 06:25:07 -05:00
aditya ravichandran
0d52522f00 Submit Files: Fix missing revision control icons
#jira UE-172827
#rb trivial

[CL 23531436 by aditya ravichandran in ue5-main branch]
2022-12-15 15:58:40 -05:00
stuart hill
d8b31f7ed0 Add a flag to the source control provider to tell us if 'uncontrolled' changelists are supported.
#rb Marco.Anastasi, zach.rammell
#prelight 6398633f8c5081ee9a275f20

[CL 23499875 by stuart hill in ue5-main branch]
2022-12-13 18:18:02 -05:00