Mercurial > hg
changeset 45250:efe8a67793b6
commitctx: rename files to touched in a couple of place
This is a clearer word that we will use increasingly over this series. It also
make the old variable name available to another usage :-)
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 25 Jul 2020 15:33:45 +0200 |
parents | b3040b6739ce |
children | 0041a42c6f28 |
files | mercurial/commit.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commit.py Sat Jul 25 15:13:25 2020 +0200 +++ b/mercurial/commit.py Sat Jul 25 15:33:45 2020 +0200 @@ -132,22 +132,22 @@ # reuse an existing manifest revision repo.ui.debug(b'reusing known manifest\n') mn = ctx.manifestnode() - files = ctx.files() + touched = ctx.files() if writechangesetcopy: filesadded = ctx.filesadded() filesremoved = ctx.filesremoved() elif not ctx.files(): repo.ui.debug(b'reusing manifest from p1 (no file change)\n') mn = p1.manifestnode() - files = [] + touched = [] else: - mn, files, added, removed = _process_files(tr, ctx, error=error) + mn, touched, added, removed = _process_files(tr, ctx, error=error) if writechangesetcopy: filesremoved = removed filesadded = added if origctx and origctx.manifestnode() == mn: - files = origctx.files() + touched = origctx.files() if not writefilecopymeta: # If writing only to changeset extras, use None to indicate that @@ -159,7 +159,7 @@ filesadded = filesadded or None filesremoved = filesremoved or None - return mn, files, p1copies, p2copies, filesadded, filesremoved + return mn, touched, p1copies, p2copies, filesadded, filesremoved def _process_files(tr, ctx, error=False):