Mercurial > hg
comparison mercurial/commit.py @ 45327:6de4c5647db3
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.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 25 Jul 2020 16:13:17 +0200 |
parents | 99614011892b |
children | e52031f5e046 |
comparison
equal
deleted
inserted
replaced
45326:99614011892b | 45327:6de4c5647db3 |
---|---|
127 elif not ctx.files(): | 127 elif not ctx.files(): |
128 repo.ui.debug(b'reusing manifest from p1 (no file change)\n') | 128 repo.ui.debug(b'reusing manifest from p1 (no file change)\n') |
129 mn = p1.manifestnode() | 129 mn = p1.manifestnode() |
130 touched = [] | 130 touched = [] |
131 else: | 131 else: |
132 mn, touched, added, removed = _process_files(tr, ctx, error=error) | 132 r = _process_files(tr, ctx, error=error) |
133 if writechangesetcopy: | 133 mn, touched, filesadded, filesremoved = r |
134 filesremoved = removed | |
135 filesadded = added | |
136 | 134 |
137 if origctx and origctx.manifestnode() == mn: | 135 if origctx and origctx.manifestnode() == mn: |
138 touched = origctx.files() | 136 touched = origctx.files() |
139 | 137 |
140 files = metadata.ChangingFiles() | 138 files = metadata.ChangingFiles() |