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

commitctx: consider removed as touched

This achieve the same result with clearer code.

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/D8707
parent 025ee25b
No related branches found
No related tags found
No related merge requests found
......@@ -3164,6 +3164,8 @@
rf = metadata.get_removal_filter(ctx, (p1, p2, m1, m2))
removed = [f for f in removed if not rf(f)]
touched.extend(removed)
if writechangesetcopy:
filesremoved = removed
......@@ -3167,7 +3169,7 @@
if writechangesetcopy:
filesremoved = removed
files = touched + removed
files = touched
md = None
if not files:
# if no "files" actually changed in terms of the changelog,
......
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