Commit Graph

15 Commits

Author SHA1 Message Date
joel anderson
7edd46c71b This adds an option to keep trying a number of times after "Aborted sync due to errors".
This option will keep trying when the perforce server times out.  That can be useful when perforce servers are overloaded and users have bad connections and continually get kicked.  It is currently defaulted to off.  In the future we may consider defaulting this number to around 1000. The setting can be found under Options->Application Settings->Advanced->Retries on sync error.

#review-20335338 @Devlin.Willis @Spencer.Melnick @Daniel.Broder @ben.marsh
#fyi @david.hamm
#jira FORT-481018
#test Pulled down entirly new branch twice.
#preflight 628be7b5e45021d097ebb1ea

[CL 20337247 by joel anderson in ue5-main branch]
2022-05-23 16:11:34 -04:00
Ben Marsh
aae45c3ebb UGS: Fix zombie process instances left around when interrupting a sync.
#preflight none
#jira UE-151634

[CL 20225597 by Ben Marsh in ue5-main branch]
2022-05-16 11:45:47 -04:00
Ben Marsh
5275b6b0d6 UGS: Fix error when syncing if files are checked out.
#preflight none

[CL 19346473 by Ben Marsh in ue5-main branch]
2022-03-10 20:28:38 -05:00
Ben Marsh
d07e5a5274 UGS-CLI: Add an option to force the filtered files to be synced with the have table (-refilter).
#preflight none

[CL 18618227 by Ben Marsh in ue5-main branch]
2022-01-14 11:00:17 -05:00
Ben Marsh
eddef12371 UGS-CLI: Various improvements/fixes.
* Support for creating workspaces using native P4 client, so "ugs init" now works correctly.
* Output a list of files which need to be clobbered when syncing, and add a -Clobber option to confirm intent.
* Fix exception accessing folders that user does not have permissions to when detecting a new workspace.

#preflight none

[CL 18618091 by Ben Marsh in ue5-main branch]
2022-01-14 10:51:47 -05:00
Ben Marsh
d0d0efdcd0 UGS: Add a warning when attempting to add the same file to the sync filter more than once.
#preflight none

[CL 18577183 by Ben Marsh in ue5-main branch]
2022-01-11 16:48:34 -05:00
Ben Marsh
58909473fd UGS: Add a command to list all clients and their root directories on the current host ("ugs clients") and a command to launch the editor ("ugs run"). Also bypass prompt for removing files from the workspace when running through CLI.
#preflight none

[CL 18576374 by Ben Marsh in ue5-main branch]
2022-01-11 15:39:30 -05:00
Ben Marsh
6b746ef904 UGS: Fix some Windows-isms in cross-platform UGS library.
#preflight none

[CL 18574223 by Ben Marsh in ue5-main branch]
2022-01-11 12:54:38 -05:00
Ben Marsh
62c1da28c1 UGS: Fix path to shell on non-Windows platforms.
#preflight none

[CL 18573478 by Ben Marsh in ue5-main branch]
2022-01-11 12:04:10 -05:00
Ben Marsh
7c8ff49331 UGS: Initial version of command-line UGS client.
Currently only tested on Windows; Mac/Linux ports to follow. Workspace state and core implementation is shared with the WinForms application, allowing switching between command line and GUI as needed.

Currently implemented commands are:

  ugs init [stream-path] [-client=..] [-server=..] [-user=..] [-branch=..] [-project=..]
    Create a client for the given stream, or initializes an existing client for use by UGS.

  ugs switch [project name|project path|stream]
    Changes the active project to the one in the workspace with the given name, or switches to a new stream.

  ugs config
    Updates the configuration for the current workspace.

  ugs sync [change|'latest'] [-build] [-only]
    Syncs the current workspace to the given changelist, optionally removing all local state.

  ugs build [id] [-list]
    Runs the default build steps for the current project, or a particular step referenced by id.

  ugs status [-update]
    Shows the status of the currently synced branch.

#preflight none

[CL 18550725 by Ben Marsh in ue5-main branch]
2022-01-07 16:21:08 -05:00
Ben Marsh
da89c7bb5f UGS: Keep cached project info in the workspace state file, and move background task management into the workspace object in the GUI app.
#preflight none

[CL 18549070 by Ben Marsh in ue5-main branch]
2022-01-07 14:16:19 -05:00
Ben Marsh
7d26f16d3e UGS: Compute build steps and environment variables for custom commands as part of the sync process. This ensures that we always use the latest values, and moves a lot of business logic out of the WinForms implementation.
#preflight none

[CL 18546984 by Ben Marsh in ue5-main branch]
2022-01-07 12:30:41 -05:00
Ben Marsh
ac92544d9c UGS: Save connection information into workspace settings file, stored in the per-workspace config directory. Fix support for clients containing multiple branches and standardize/validate format of project and branch paths.
#preflight none

[CL 18530994 by Ben Marsh in ue5-main branch]
2022-01-06 09:50:45 -05:00
UnrealBot
2987349d36 Branch snapshot for CL 18514113
[CL 18514113 in ue5-main branch]
2022-01-05 20:41:17 +00:00
Ben Marsh
a624618831 UGS: More core functionality into a shared library.
#preflight none

[CL 18519978 by Ben Marsh in ue5-main branch]
2022-01-05 11:41:36 -05:00