mercurial/commit.py
changeset 45327 6de4c5647db3
parent 45326 99614011892b
child 45328 e52031f5e046
--- a/mercurial/commit.py	Sat Jul 25 16:07:38 2020 +0200
+++ b/mercurial/commit.py	Sat Jul 25 16:13:17 2020 +0200
@@ -129,10 +129,8 @@
         mn = p1.manifestnode()
         touched = []
     else:
-        mn, touched, added, removed = _process_files(tr, ctx, error=error)
-        if writechangesetcopy:
-            filesremoved = removed
-            filesadded = added
+        r = _process_files(tr, ctx, error=error)
+        mn, touched, filesadded, filesremoved = r
 
     if origctx and origctx.manifestnode() == mn:
         touched = origctx.files()