Skip to content
Snippets Groups Projects
Commit 6979a20f authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

commitctx: more filesremoved assignment closer to removed computation

A small change that makes the code flow clearer.

This is part of a larger refactoring/cleanup of the commitctx code to clarify
and augment the logic gathering metadata useful for copy tracing. The current
code is a tad too long and entangled to make such update easy. We start with
easy and small cleanup.

Differential Revision: https://phab.mercurial-scm.org/D8704
parent e64c35df
No related branches found
No related tags found
No related merge requests found
......@@ -3164,6 +3164,9 @@
rf = metadata.get_removal_filter(ctx, (p1, p2, m1, m2))
removed = [f for f in removed if not rf(f)]
if writechangesetcopy:
filesremoved = removed
files = changed + removed
md = None
if not files:
......@@ -3194,9 +3197,6 @@
drop,
match=self.narrowmatch(),
)
if writechangesetcopy:
filesremoved = removed
else:
self.ui.debug(
b'reusing manifest from p1 (listed files '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment