changeset 45234:595307e14140

commitctx: move `writechangesetcopy` business at the end a code section This code is to handle a specific subcase so we move it a the end. This allow to gather the rest of the "core" code closer to the related logic.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 23 Jul 2020 22:58:29 +0200
parents ada51c1b6916
children b65b4b09859c
files mercurial/commit.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commit.py	Thu Jul 23 21:09:42 2020 +0200
+++ b/mercurial/commit.py	Thu Jul 23 22:58:29 2020 +0200
@@ -138,12 +138,12 @@
 
             touched.extend(removed)
 
+            files = touched
+            mn = _commit_manifest(tr, linkrev, ctx, mctx, files, added, drop)
+
             if writechangesetcopy:
                 filesremoved = removed
 
-            files = touched
-            mn = _commit_manifest(tr, linkrev, ctx, mctx, files, added, drop)
-
         if not writefilecopymeta:
             # If writing only to changeset extras, use None to indicate that
             # no entry should be written. If writing to both, write an empty