0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 05:33:03 -05:00
This commit is contained in:
Malte Jürgens 2024-05-15 23:42:59 +02:00
parent a2fcf3c2f8
commit 6a41d5c3c4
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3

View file

@ -1,9 +1,7 @@
diff --git a/python/mozversioncontrol/mozversioncontrol/__init__.py b/python/mozversioncontrol/mozversioncontrol/__init__.py
--- a/python/mozversioncontrol/mozversioncontrol/__init__.py
+++ b/python/mozversioncontrol/mozversioncontrol/__init__.py
@@ -957,14 +957,14 @@
def get_upstream(self):
@@ -959,10 +959,10 @@ class SrcRepository(Repository):
pass
def get_changed_files(self, diff_filter="ADM", mode="unstaged", rev=None):
@ -16,6 +14,14 @@ diff --git a/python/mozversioncontrol/mozversioncontrol/__init__.py b/python/moz
def add_remove_files(self, *paths: Union[str, Path]):
pass
@@ -995,7 +995,9 @@ class SrcRepository(Repository):
# move away the .git or .hg folder from path to more easily test in a hg/git repo
for root, dirs, files in os.walk("."):
for name in files:
- res.append(os.path.join(root, name))
+ res.append(
+ os.path.relpath(os.path.join(root, name), path).replace("\\", "/")
+ )
return res
def forget_add_remove_files(self, *paths: Union[str, Path]):
def get_tracked_files_finder(self, path):