mirror of
https://codeberg.org/librewolf/source.git
synced 2025-01-18 10:22:30 -05:00
fix bootstrap patch
This commit is contained in:
parent
82ad2e9b57
commit
7ee529619b
1 changed files with 21 additions and 5 deletions
|
@ -66,14 +66,12 @@
|
||||||
|
|
||||||
--- a/third_party/python/taskcluster_taskgraph/taskgraph/util/vcs.py
|
--- a/third_party/python/taskcluster_taskgraph/taskgraph/util/vcs.py
|
||||||
+++ b/third_party/python/taskcluster_taskgraph/taskgraph/util/vcs.py
|
+++ b/third_party/python/taskcluster_taskgraph/taskgraph/util/vcs.py
|
||||||
@@ -168,6 +168,27 @@ class GitRepository(Repository):
|
@@ -168,6 +168,43 @@ class GitRepository(Repository):
|
||||||
self.run("checkout", ref)
|
self.run("checkout", ref)
|
||||||
|
|
||||||
|
|
||||||
+class LocalRepository(Repository):
|
+class LocalRepository(Repository):
|
||||||
+
|
+ tool = "true"
|
||||||
+ def __init__(self, path):
|
|
||||||
+ super(LocalRepository, self).__init__(path, tool="true")
|
|
||||||
+
|
+
|
||||||
+ @property
|
+ @property
|
||||||
+ def head_ref(self):
|
+ def head_ref(self):
|
||||||
|
@ -85,6 +83,24 @@
|
||||||
+ def get_changed_files(self):
|
+ def get_changed_files(self):
|
||||||
+ return []
|
+ return []
|
||||||
+
|
+
|
||||||
|
+ def base_ref(self):
|
||||||
|
+ raise Exception("Unimplemented")
|
||||||
|
+
|
||||||
|
+ def branch(self):
|
||||||
|
+ raise Exception("Unimplemented")
|
||||||
|
+
|
||||||
|
+ def get_commit_message(self):
|
||||||
|
+ raise Exception("Unimplemented")
|
||||||
|
+
|
||||||
|
+ def get_url(self):
|
||||||
|
+ return ""
|
||||||
|
+
|
||||||
|
+ def update(self):
|
||||||
|
+ raise Exception("Unimplemented")
|
||||||
|
+
|
||||||
|
+ def working_directory_clean(self):
|
||||||
|
+ raise Exception("Unimplemented")
|
||||||
|
+
|
||||||
+ def get_tracked_files_finder(self):
|
+ 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()
|
+ files.sort()
|
||||||
|
@ -94,7 +110,7 @@
|
||||||
def get_repository(path):
|
def get_repository(path):
|
||||||
"""Get a repository object for the repository at `path`.
|
"""Get a repository object for the repository at `path`.
|
||||||
If `path` is not a known VCS repository, raise an exception.
|
If `path` is not a known VCS repository, raise an exception.
|
||||||
@@ -178,7 +199,7 @@ def get_repository(path):
|
@@ -178,7 +215,7 @@ def get_repository(path):
|
||||||
elif os.path.exists(os.path.join(path, ".git")):
|
elif os.path.exists(os.path.join(path, ".git")):
|
||||||
return GitRepository(path)
|
return GitRepository(path)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue