diff mercurial/commit.py @ 45324:6c56277317c2

commitctx: directly pass a ChangingFiles object to changelog.add We pass the rich object to the changelog and it read the field it needs.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 25 Jul 2020 15:55:09 +0200
parents aea6a812f7cb
children 99614011892b
line wrap: on
line diff
--- a/mercurial/commit.py	Sat Jul 25 15:49:12 2020 +0200
+++ b/mercurial/commit.py	Sat Jul 25 15:55:09 2020 +0200
@@ -84,7 +84,7 @@
         repo.changelog.delayupdate(tr)
         n = repo.changelog.add(
             mn,
-            files.touched,
+            files,
             ctx.description(),
             tr,
             p1.node(),
@@ -92,10 +92,6 @@
             user,
             ctx.date(),
             extra,
-            files.copied_from_p1,
-            files.copied_from_p2,
-            files.added,
-            files.removed,
         )
         xp1, xp2 = p1.hex(), p2 and p2.hex() or b''
         repo.hook(