diff options
Diffstat (limited to 'llvm_tools/cros_cls.py')
-rw-r--r-- | llvm_tools/cros_cls.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm_tools/cros_cls.py b/llvm_tools/cros_cls.py index d5b5ffa0..b74132e2 100644 --- a/llvm_tools/cros_cls.py +++ b/llvm_tools/cros_cls.py @@ -112,13 +112,16 @@ class ChangeListURL: raise ValueError("A patchset number must be specified.") return result - def __str__(self): + def crrev_url_without_http(self): namespace = "i" if self.internal else "c" - result = f"https://crrev.com/{namespace}/{self.cl_id}" + result = f"crrev.com/{namespace}/{self.cl_id}" if self.patch_set is not None: result += f"/{self.patch_set}" return result + def __str__(self): + return f"https://{self.crrev_url_without_http()}" + def builder_url(build_id: BuildID) -> str: """Returns a builder URL given a build ID.""" |