0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2025-01-03 03:10:07 -05:00

fix bootstrap-without-vcs.patch

This commit is contained in:
Malte Jürgens 2023-01-11 22:36:55 +01:00
parent 50f5a05294
commit 1fa7aa60ce
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3

View file

@ -64,7 +64,7 @@
--- a/third_party/python/taskcluster_taskgraph/taskgraph/util/vcs.py
+++ b/third_party/python/taskcluster_taskgraph/taskgraph/util/vcs.py
@@ -495,6 +495,56 @@ class GitRepository(Repository):
@@ -495,6 +495,71 @@ class GitRepository(Repository):
raise
@ -75,39 +75,54 @@
+ def head_ref(self):
+ return ""
+
+ @property
+ def get_outgoing_files(self):
+ return []
+
+ @property
+ def get_changed_files(self):
+ return []
+
+ @property
+ def base_ref(self):
+ raise Exception("Unimplemented")
+
+ @property
+ def branch(self):
+ raise Exception("Unimplemented")
+
+ @property
+ def get_commit_message(self):
+ raise Exception("Unimplemented")
+
+ @property
+ def get_url(self):
+ return ""
+
+ @property
+ def update(self):
+ raise Exception("Unimplemented")
+
+ @property
+ def working_directory_clean(self):
+ raise Exception("Unimplemented")
+
+ @property
+ def all_remote_names(self):
+ raise Exception("Unimplemented")
+
+ def base_rev(self):
+ raise Exception("Unimplemented")
+
+ def default_branch(self):
+ raise Exception("Unimplemented")
+
+ def default_remote_name(self):
+ raise Exception("Unimplemented")
+
+ def does_revision_exist_locally(self):
+ raise Exception("Unimplemented")
+
+ def find_latest_common_revision(self):
+ raise Exception("Unimplemented")
+
+ def head_rev(self):
+ raise Exception("Unimplemented")
+
+ def remote_name(self):
+ raise Exception("Unimplemented")
+
+ def get_tracked_files_finder(self):
+ files = [
+ os.path.relpath(os.path.join(dp, f), self.path).replace("\\", "/")
@ -121,7 +136,7 @@
def get_repository(path):
"""Get a repository object for the repository at `path`.
If `path` is not a known VCS repository, raise an exception.
@@ -505,7 +555,7 @@ def get_repository(path):
@@ -505,7 +570,7 @@ def get_repository(path):
elif os.path.exists(os.path.join(path, ".git")):
return GitRepository(path)