unknown-cli 0.9.3__tar.gz → 0.9.5__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.3 → unknown-cli-0.9.5}/PKG-INFO +1 -1
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/PKG-INFO +1 -1
- unknown-cli-0.9.5/unknowncli/VERSION +1 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/commands/project.py +1 -1
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/commands/task.py +10 -5
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/utils.py +1 -1
- unknown-cli-0.9.3/unknowncli/VERSION +0 -1
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/README.md +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/setup.cfg +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/setup.py +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/SOURCES.txt +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/dependency_links.txt +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/entry_points.txt +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/requires.txt +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/top_level.txt +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/__init__.py +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/__main__.py +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/commands/__init__.py +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/commands/preflight.py +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/commands/unreal.py +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/data/.p4ignore.txt +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/set_registry_keys.py +0 -0
- {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/set_url_handler.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.9.5
|
|
@@ -201,7 +201,7 @@ def setup(
|
|
|
201
201
|
except:
|
|
202
202
|
secho("Access denied setting subst registry key. Running elevated process...")
|
|
203
203
|
path = Path(__file__).parent.parent / "set_registry_keys.py"
|
|
204
|
-
cmd = f"{sys.executable} {path.resolve()} \"{subst_cmd}\""
|
|
204
|
+
cmd = f"{sys.executable} \"{path.resolve()}\" \"{subst_cmd}\""
|
|
205
205
|
check_call(cmd)
|
|
206
206
|
|
|
207
207
|
h = winreg.CreateKey(winreg.HKEY_CURRENT_USER, "SOFTWARE\\perforce\\environment")
|
|
@@ -127,9 +127,14 @@ def create(label: str = Option(None, prompt="Task branch label")):
|
|
|
127
127
|
|
|
128
128
|
if not label:
|
|
129
129
|
abort("Aborted.")
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
# This needs to be lower() when used as the parent for the new task stream.
|
|
131
|
+
# TC is case sensitive so the parent stream needs to be '//project/sn2-main-ue'. (bug TW-87208)
|
|
132
|
+
# You can edit a stream if you need to change the parent to lowercase:
|
|
133
|
+
# p4 stream -o -v //project/<stream_name> > spec.txt
|
|
134
|
+
# p4 stream -i -f < spec.txt
|
|
135
|
+
current_stream_lower = get_current_stream()["Stream"].lower()
|
|
136
|
+
if current_stream_lower not in STREAM_LIST_LOWER:
|
|
137
|
+
abort(f"You are working in stream {current_stream_lower}. Please first run 'unk task switch' to a parent stream.\nValid parent streams:{STREAM_LIST_STRING}")
|
|
133
138
|
|
|
134
139
|
ret = p4.run_opened()
|
|
135
140
|
if len(ret):
|
|
@@ -147,12 +152,12 @@ def create(label: str = Option(None, prompt="Task branch label")):
|
|
|
147
152
|
label = label.replace(" ", "_").lower()
|
|
148
153
|
stream_name = f"{p4.user}-{d}-{label}"
|
|
149
154
|
full_stream_name = f"//Project/{stream_name}"
|
|
150
|
-
secho(f"Creating task stream {stream_name} from {
|
|
155
|
+
secho(f"Creating task stream {stream_name} from {current_stream_lower} ...")
|
|
151
156
|
args = f"""
|
|
152
157
|
Stream: {full_stream_name}
|
|
153
158
|
Owner: {p4.user}
|
|
154
159
|
Name: {stream_name}
|
|
155
|
-
Parent: {
|
|
160
|
+
Parent: {current_stream_lower}
|
|
156
161
|
Type: task
|
|
157
162
|
Description:
|
|
158
163
|
Created by {p4.user}.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.9.3
|
|
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
|