commit 8fa452d6e3f7d238ed8f99dfc024a65bee9870ca
parent 1a8d9b30805b22941f773d040227828efd32dd99
Author: Steve Fink <sfink@mozilla.com>
Date: Fri, 7 Nov 2025 18:32:59 +0000
Bug 1996370 - Fix problem on Windows with trying to interpret the path C:... r=ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D270052
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/python/mozversioncontrol/mozversioncontrol/repo/jj.py b/python/mozversioncontrol/mozversioncontrol/repo/jj.py
@@ -439,7 +439,7 @@ class JujutsuRepository(Repository):
p.write_text(content)
# Manually track the file in case it is not automatically,
# e.g. because `snapshot.auto-track` has been configured.
- self._run("file", "track", p)
+ self.add_remove_files(p)
# Update the jj commit with the changes we just made.
self._snapshot()
yield self._resolve_to_change("@")
diff --git a/python/mozversioncontrol/test/test_push_to_try.py b/python/mozversioncontrol/test/test_push_to_try.py
@@ -157,6 +157,8 @@ def test_push_to_try(repo, monkeypatch):
"commit message",
'coalesce(@ ~ (empty() & description(exact:"")) ~ bookmarks(), @-)',
),
+ (str(tool), "file", "track", "extra-file"),
+ (str(tool), "file", "track", "other/extra-file"),
(str(tool), "log", "-n0"),
(
str(tool),