|
@@ -241,6 +241,10 @@ def git_whence():
|
|
|
os.chmod(CURRENT_DIR / 'git-whence', 0o755)
|
|
os.chmod(CURRENT_DIR / 'git-whence', 0o755)
|
|
|
|
|
|
|
|
def jujutsu():
|
|
def jujutsu():
|
|
|
|
|
+ if (CURRENT_DIR / 'jj').exists():
|
|
|
|
|
+ print_gray('jj already downloaded')
|
|
|
|
|
+ return
|
|
|
|
|
+
|
|
|
if platform.system() == 'Darwin':
|
|
if platform.system() == 'Darwin':
|
|
|
print('$ brew install jj')
|
|
print('$ brew install jj')
|
|
|
subprocess.run(['brew', 'install', 'jj'], check=True)
|
|
subprocess.run(['brew', 'install', 'jj'], check=True)
|
|
@@ -248,10 +252,6 @@ def jujutsu():
|
|
|
else:
|
|
else:
|
|
|
assert platform.system() == 'Linux'
|
|
assert platform.system() == 'Linux'
|
|
|
|
|
|
|
|
- if (CURRENT_DIR / 'jj').exists():
|
|
|
|
|
- print_gray('jj already downloaded')
|
|
|
|
|
- return
|
|
|
|
|
-
|
|
|
|
|
client = httpx.Client()
|
|
client = httpx.Client()
|
|
|
latest = gh_latest_version(client, 'jj-vcs', 'jj')
|
|
latest = gh_latest_version(client, 'jj-vcs', 'jj')
|
|
|
version = latest['name']
|
|
version = latest['name']
|