win32text: make the hacky call cover more cases
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 04 Feb 2023 09:08:26 +0100
changeset 50014 b7ddd9ae4bef
parent 50013 05a2f65c9e86
child 50015 e86262dd903e
win32text: make the hacky call cover more cases Now that I understand what this is doing, It seems like the case for `p1_tracked` were covered by neither the code nor the test. Now the code cover it at least.
hgext/win32text.py
--- a/hgext/win32text.py	Wed Jan 25 12:47:55 2023 +0100
+++ b/hgext/win32text.py	Sat Feb 04 09:08:26 2023 +0100
@@ -230,7 +230,7 @@
                 ds.hacky_extension_update_file(
                     filename,
                     entry.tracked,
-                    p1_tracked=True,
+                    p1_tracked=entry.p1_tracked,
                     p2_info=entry.p2_info,
                 )
     return orig(repo, ctx, names, uipathfn, actions, *args, **kwargs)