0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 13:43:04 -05:00

fix bootstrap-without-vcs.patch

This commit is contained in:
Malte Jürgens 2023-01-11 21:55:34 +01:00
parent 3c1af37546
commit 50f5a05294
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,43 @@ class GitRepository(Repository):
@@ -495,6 +495,56 @@ class GitRepository(Repository):
raise
@ -75,32 +75,45 @@
+ 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 get_tracked_files_finder(self):
+ files = [os.path.relpath(os.path.join(dp, f), self.path).replace("\\","/") for dp, dn, fn in os.walk(self.path) for f in fn]
+ files = [
+ os.path.relpath(os.path.join(dp, f), self.path).replace("\\", "/")
+ for dp, dn, fn in os.walk(self.path)
+ for f in fn
+ ]
+ files.sort()
+ return FileListFinder(files)
+
@ -108,7 +121,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 +542,7 @@ def get_repository(path):
@@ -505,7 +555,7 @@ def get_repository(path):
elif os.path.exists(os.path.join(path, ".git")):
return GitRepository(path)