unknown-cli 0.9.28__tar.gz → 0.9.30__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/PKG-INFO +1 -1
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknown_cli.egg-info/PKG-INFO +1 -1
- unknown-cli-0.9.30/unknowncli/VERSION +1 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/commands/preflight.py +15 -9
- unknown-cli-0.9.28/unknowncli/VERSION +0 -1
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/README.md +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/setup.cfg +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/setup.py +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknown_cli.egg-info/SOURCES.txt +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknown_cli.egg-info/dependency_links.txt +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknown_cli.egg-info/entry_points.txt +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknown_cli.egg-info/requires.txt +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknown_cli.egg-info/top_level.txt +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/__init__.py +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/__main__.py +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/commands/__init__.py +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/commands/project.py +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/commands/task.py +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/commands/unreal.py +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/data/.p4ignore.txt +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/set_registry_keys.py +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/set_url_handler.py +0 -0
- {unknown-cli-0.9.28 → unknown-cli-0.9.30}/unknowncli/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.9.30
|
|
@@ -375,6 +375,13 @@ def print_change_obj_list(sorted_change_obj_list):
|
|
|
375
375
|
return
|
|
376
376
|
|
|
377
377
|
|
|
378
|
+
def check_for_forbidden_files(changelist):
|
|
379
|
+
describe_shelve = get_describe_shelve(changelist)[0]
|
|
380
|
+
for shelf_file in describe_shelve["depotFile"]:
|
|
381
|
+
if re.search("^\/\/[^\/]*\/[^\/]*\/Raw", shelf_file):
|
|
382
|
+
abort(f"Cannot preflight a CL containing Raw files.")
|
|
383
|
+
return
|
|
384
|
+
|
|
378
385
|
def verify_changelist(change_obj, change_obj_list):
|
|
379
386
|
if not change_obj:
|
|
380
387
|
abort("No changelist selected")
|
|
@@ -385,10 +392,6 @@ def verify_changelist(change_obj, change_obj_list):
|
|
|
385
392
|
abort(f"Selected changelist does not have any opened files: {changelist} ({client})")
|
|
386
393
|
if not any([c for c in change_obj_list if c.client == client and c.change == changelist]):
|
|
387
394
|
abort(f"Selected changelist not owned by current user: {changelist} ({client})")
|
|
388
|
-
describe_shelve = get_describe_shelve(changelist)[0]
|
|
389
|
-
for shelf_file in describe_shelve["depotFile"]:
|
|
390
|
-
if re.search("^\/\/[^\/]*\/[^\/]*\/Raw", shelf_file):
|
|
391
|
-
abort(f"Cannot preflight a CL containing Raw files.")
|
|
392
395
|
return
|
|
393
396
|
|
|
394
397
|
|
|
@@ -569,8 +572,7 @@ def get_shelve_preflight_build_id(shelve_changelist, type=PreflightType.FULL, st
|
|
|
569
572
|
secho(output, fg="green")
|
|
570
573
|
build_id = output.split("\n")[-1]
|
|
571
574
|
except CalledProcessError as e:
|
|
572
|
-
|
|
573
|
-
secho(e.output.decode("ascii"), fg="red")
|
|
575
|
+
secho(e.output.decode("ascii"), fg="red")
|
|
574
576
|
if abort_on_fail:
|
|
575
577
|
abort(f"Failed to {'find' if find else 'trigger'} preflight.")
|
|
576
578
|
if build_id and print_output:
|
|
@@ -857,6 +859,8 @@ def main(
|
|
|
857
859
|
Preflight a changelist
|
|
858
860
|
"""
|
|
859
861
|
|
|
862
|
+
secho("Initializing, this may take a moment...\n", bold=True)
|
|
863
|
+
|
|
860
864
|
# Check for Tailscale connection
|
|
861
865
|
if not "Tailscale" in os.environ["PATH"] or not tailscale_is_connected():
|
|
862
866
|
abort("In order to preflight you must be connected to Tailscale.")
|
|
@@ -891,18 +895,20 @@ def main(
|
|
|
891
895
|
change_obj = sorted_change_obj_list[int(chosen_index)]
|
|
892
896
|
|
|
893
897
|
verify_changelist(change_obj, sorted_change_obj_list)
|
|
898
|
+
shelve_changelist = changelist
|
|
894
899
|
if get_opened_file_list(change_obj.change):
|
|
895
900
|
shelve_changelist = attempt_shelve_changelist(change_obj.change)
|
|
901
|
+
check_for_forbidden_files(shelve_changelist)
|
|
896
902
|
if use_server_submit and commit_on_success:
|
|
897
|
-
secho(f"Reverting files from CL {
|
|
898
|
-
revert_file_in_cl("//...",
|
|
903
|
+
secho(f"Reverting files from CL {shelve_changelist} to allow for submit on the server..")
|
|
904
|
+
revert_file_in_cl("//...", shelve_changelist, "-w")
|
|
899
905
|
else:
|
|
900
906
|
if change_obj.is_shelved:
|
|
901
907
|
shelve_changelist = change_obj.change
|
|
902
908
|
else:
|
|
903
909
|
abort(f"No opened files or shelve to work with in changelist '{change_obj.change}'...")
|
|
904
910
|
|
|
905
|
-
use_content_build = shelf_is_content_only(
|
|
911
|
+
use_content_build = shelf_is_content_only(shelve_changelist)
|
|
906
912
|
build_id = get_shelve_preflight_build_id(
|
|
907
913
|
shelve_changelist, type=type, stream=get_client_stream(change_obj.client), print_output=verbose, submit_on_server=(use_server_submit and commit_on_success), content_only_build=use_content_build
|
|
908
914
|
)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.9.28
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|