Commit Graph

533 Commits

Author SHA1 Message Date
Ben Marsh
a43977439b UGS: Include revision range in p4 changes query, as well as specifying -e.
#preflight none

[CL 23158672 by Ben Marsh in ue5-main branch]
2022-11-16 14:04:04 -05:00
Ben Marsh
272b9a03b4 UGS: Swallow exception clearing contents of log control.
#preflight none

[CL 23152943 by Ben Marsh in ue5-main branch]
2022-11-16 08:20:03 -05:00
Ben Marsh
3db3dca37c UGS: Show changes for all projects by default, to reduce load on Perforce server.
#preflight none

[CL 23144554 by Ben Marsh in ue5-main branch]
2022-11-15 17:34:52 -05:00
Ben Marsh
4615cc7a65 Remove IList.BinarySearch extension methods due to IList not deriving from IReadOnlyList, and some classes implementing both.
#preflight none

[CL 23016231 by Ben Marsh in ue5-main branch]
2022-11-07 15:04:41 -05:00
Ben Marsh
4604abc152 UGS: Fix PCBs not showing if built for changelists not visible for the current project.
#preflight none

[CL 23015525 by Ben Marsh in ue5-main branch]
2022-11-07 14:40:57 -05:00
Ben Marsh
fba9f1520e UGS: Fix null reference exception when querying for custom code filters.
#preflight none

[CL 22556238 by Ben Marsh in ue5-main branch]
2022-10-16 20:46:49 -04:00
Ben Marsh
95d101e792 UGS: Allow overriding the filter used to determine if a file contains code.
The CodeFilter property is read from the [Perforce] section in the config file, and is appended to the default list of filters used to find code changes (having a cpp/h extension and so on). Syntax is in standard Perforce syntax, with a '-' prefix to exclude matching files. For example, the following entry..

  [Perforce]
  CodeFilter=-.../Experimental/...
  CodeFilter=-*.h

Excludes all *.h and files under an /Experimental/ folder anywhere in the tree from being treated as code changes.

#fyi Mike.Beach
#preflight none

[CL 22541814 by Ben Marsh in ue5-main branch]
2022-10-14 19:52:19 -04:00
Ben Marsh
df8dc1598f UGS: Disable logic to query for changes up to the last PCB zip file. This can result in a lot of unnecessary traffic to the P4 server, and can cause the UI to lock up on inserting so many changes.
#preflight none

[CL 22422037 by Ben Marsh in ue5-main branch]
2022-10-09 13:43:20 -04:00
Ben Marsh
fd59c34426 Horde: Prevent fetching more than the maximum number of desired changes, even when doing incremental updates.
#preflight none

[CL 22418274 by Ben Marsh in ue5-main branch]
2022-10-08 15:34:15 -04:00
Ben Marsh
ec02ded8fd UGS: Revert change to query submitted changes using -e parameter. Seems to run much slower on our p4 server (?).
#preflight none

[CL 22377834 by Ben Marsh in ue5-main branch]
2022-10-06 12:39:56 -04:00
Ben Marsh
25ffeb284e UGS: Improve fast path for finding code changes. Find the last cpp change within an optimistic range first, and only query all extensions for changes after then.
#preflight none

[CL 22377732 by Ben Marsh in ue5-main branch]
2022-10-06 12:35:11 -04:00
Ben Marsh
ac024dfb04 UGS: Duplicate shared projects which UGS depends on, including files from their original locations, so we can upgrade shared projects to NET 6 without requiring all users to have it installed. (In-engine projects all use NET SDK distributed with the engine, whereas UGS does not).
#preflight none
#fyi Joe.Kirchoff, Joakim.Lindqvist

[CL 22272964 by Ben Marsh in ue5-main branch]
2022-09-30 12:29:12 -04:00
Ben Marsh
522c445abf UGS: Support for manually refreshing list of changes, by pressing Ctrl+R or F5.
#preflight none

[CL 22224494 by Ben Marsh in ue5-main branch]
2022-09-28 12:11:13 -04:00
Edstub207
1e997f7ce2 UGS: Add random variance to background refresh times, to avoid DDOSing Perforce server. Also increase refresh times to 5m (when active) or 30m (when running the background). (#9584)
#preflight none
#jira UE-164680

[CL 22221917 by Edstub207 in ue5-main branch]
2022-09-28 10:32:49 -04:00
Ben Marsh
d3f3ac7186 UGS: Disable debug/trace level output for syncing.
#preflight none

[CL 22221778 by Ben Marsh in ue5-main branch]
2022-09-28 10:25:22 -04:00
Edstub207
44b67593c9 UGS: Improve performance of ranged changelist queries. (PR #9584)
* Querying for changelists using @n,m syntax allows the Perforce server to execute queries using an optimized codepath. Attempt to query for code changes using this syntax by default (with an arbitrary lower bound for the range), and fallback to the legacy query syntax if we don't find any results.
* Use the -e argument when executing p4 changes commands to specify a minimum changelist number. This query syntax is more efficient than specifying a wildcard with revision range.
* Use PerforceUtils.CodeExtensions as the list of code extensions, to unify with UAT/Horde.

#preflight none
#jira UE-164680, UE-160465

[CL 22221689 by Edstub207 in ue5-main branch]
2022-09-28 10:18:31 -04:00
Ben Marsh
a29efbdaa5 UGS: Speculative fix for out-of-bounds access reported in Sentry.
#preflight none

[CL 22073681 by Ben Marsh in ue5-main branch]
2022-09-19 10:23:32 -04:00
jonathan bard
fdd30e0f6f UGS : added the changelist context menu to current changelist
#rb ben.marsh
#jira none
#preflight none

[CL 21810398 by jonathan bard in ue5-main branch]
2022-09-06 05:50:49 -04:00
Mike Beach
1bc4d2895b Fix to 'changes' cmd -- clamping linecount to address out-of-bounds exception.
#rb Ben.Marsh
#fyi Ben.Marsh
#preflight trivial

[CL 21749684 by Mike Beach in ue5-main branch]
2022-09-01 18:34:46 -04:00
Ben Marsh
befe73e25f UGS: Fix some build issues after recent changes to EpicGames.Perforce.
#preflight none

[CL 21719842 by Ben Marsh in ue5-main branch]
2022-08-31 09:25:44 -04:00
Ben Marsh
cc600b6029 UGS: Fix clean workspace task not correctly identifying writable files.
#preflight none

[CL 21719629 by Ben Marsh in ue5-main branch]
2022-08-31 09:10:10 -04:00
Ben Marsh
e5bdf811e5 UGS: Add support for syncing binaries from CLI (with the "-binaries" argument).
#preflight none

[CL 21566394 by Ben Marsh in ue5-main branch]
2022-08-25 12:00:10 -04:00
Joe Kirchoff
c800810383 SyncBinariesFromUGS: Retrieve correct compatible changelist using the existing P4Env
Move list of extensions treated as code to common location

#rnx
#rb ben.marsh
#preflight 63052cb8a45b007ea2836cc7

[CL 21518406 by Joe Kirchoff in ue5-main branch]
2022-08-23 16:08:29 -04:00
Ben Marsh
8636c6db51 UGS: Fix crash opening UGS without any project.
#fyi Joakim.Lindqvist
#preflight none

[CL 21072742 by Ben Marsh in ue5-main branch]
2022-07-13 12:11:40 -04:00
Ben Marsh
334567807c UGS: Add a better error for missing a file for post-sync steps.
#preflight none

[CL 21070935 by Ben Marsh in ue5-main branch]
2022-07-13 10:39:41 -04:00