mercurial/commands.py
changeset 51143 d6e5bec550f1
parent 50989 752c5a5b73c6
child 51314 7e6aae033d8d
--- a/mercurial/commands.py	Thu Sep 07 08:39:21 2023 +0200
+++ b/mercurial/commands.py	Wed Nov 15 02:39:53 2023 +0100
@@ -29,6 +29,7 @@
     copies,
     debugcommands as debugcommandsmod,
     destutil,
+    diffutil,
     discovery,
     encoding,
     error,
@@ -2655,7 +2656,7 @@
     if change:
         repo = scmutil.unhidehashlikerevs(repo, [change], b'nowarn')
         ctx2 = logcmdutil.revsingle(repo, change, None)
-        ctx1 = logcmdutil.diff_parent(ctx2)
+        ctx1 = diffutil.diff_parent(ctx2)
     elif from_rev or to_rev:
         repo = scmutil.unhidehashlikerevs(
             repo, [from_rev] + [to_rev], b'nowarn'