Skip to content
Snippets Groups Projects
Commit e18ef2e1 authored by Sean Farley's avatar Sean Farley
Browse files

localrepo: remove unneeded unpacking of r

This unpacking is unneeded now because previous patches have removed the need
for this method to modify each of these variables in favor of passing the whole
set around to pre/post hook methods of the corresponding context object.
parent 3b647aed
No related branches found
No related tags found
No related merge requests found
......@@ -1558,6 +1558,5 @@
r = ctx2._poststatus(ctx1, r, match, listignored, listclean,
listunknown)
modified, added, removed, deleted, unknown, ignored, clean = r
if reversed:
......@@ -1562,8 +1561,9 @@
if reversed:
added, removed = removed, added
r = modified, added, removed, deleted, unknown, ignored, clean
# since we are maintaining whether we reversed ctx1 and ctx2 (due
# to comparing the workingctx with its parent), we need to switch
# back added files (r[1]) and removed files (r[2])
r[1], r[2] = r[2], r[1]
if listsubrepos:
for subpath, sub in scmutil.itersubrepos(ctx1, ctx2):
......
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