changeset 50014:b7ddd9ae4bef

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 04 Feb 2023 09:08:26 +0100
parents 05a2f65c9e86
children e86262dd903e
files hgext/win32text.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)