comparison mercurial/localrepo.py @ 21479:e18ef2e11219

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.
author Sean Farley <sean.michael.farley@gmail.com>
date Tue, 22 Apr 2014 19:06:37 -0500
parents 3b647aed4394
children d19f491e5d5b
comparison
equal deleted inserted replaced
21478:3b647aed4394 21479:e18ef2e11219
1556 r = ctx2._buildstatus(ctx1, r, match, listignored, listclean, 1556 r = ctx2._buildstatus(ctx1, r, match, listignored, listclean,
1557 listunknown) 1557 listunknown)
1558 1558
1559 r = ctx2._poststatus(ctx1, r, match, listignored, listclean, 1559 r = ctx2._poststatus(ctx1, r, match, listignored, listclean,
1560 listunknown) 1560 listunknown)
1561 modified, added, removed, deleted, unknown, ignored, clean = r
1562 1561
1563 if reversed: 1562 if reversed:
1564 added, removed = removed, added 1563 # since we are maintaining whether we reversed ctx1 and ctx2 (due
1565 1564 # to comparing the workingctx with its parent), we need to switch
1566 r = modified, added, removed, deleted, unknown, ignored, clean 1565 # back added files (r[1]) and removed files (r[2])
1566 r[1], r[2] = r[2], r[1]
1567 1567
1568 if listsubrepos: 1568 if listsubrepos:
1569 for subpath, sub in scmutil.itersubrepos(ctx1, ctx2): 1569 for subpath, sub in scmutil.itersubrepos(ctx1, ctx2):
1570 if working: 1570 if working:
1571 rev2 = None 1571 rev2 = None