# HG changeset patch # User Pierre-Yves David # Date 1595686397 -7200 # Node ID 6de4c5647db302bbeed6c3d85ecc60f4bae91c4d # Parent 99614011892beda1beafdf9ddf5a98ab7837ebba commitctx: no longer make the storage and added/removed file optional The code using this variable is always using other, stricter, condition before using these value. So it is safe to always carry them along. diff -r 99614011892b -r 6de4c5647db3 mercurial/commit.py --- 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()