Closed by commit rHG4093fc1777c2: logcmdutil: use field names instead of field numbers on scmutil.status (authored by durin42). This revision was automatically updated to reflect the committed changes.
REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D7400?vs=18090&id=18128 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7400/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7400 AFFECTED FILES mercurial/logcmdutil.py CHANGE DETAILS diff --git a/mercurial/logcmdutil.py b/mercurial/logcmdutil.py --- a/mercurial/logcmdutil.py +++ b/mercurial/logcmdutil.py @@ -339,8 +339,11 @@ self._exthook(ctx) if self.ui.debugflag: - files = ctx.p1().status(ctx)[:3] - for key, value in zip([b'files', b'files+', b'files-'], files): + files = ctx.p1().status(ctx) + for key, value in zip( + [b'files', b'files+', b'files-'], + [files.modified, files.added, files.removed], + ): if value: self.ui.write( columns[key] % b" ".join(value), @@ -470,9 +473,9 @@ ): files = ctx.p1().status(ctx) fm.data( - modified=fm.formatlist(files[0], name=b'file'), - added=fm.formatlist(files[1], name=b'file'), - removed=fm.formatlist(files[2], name=b'file'), + modified=fm.formatlist(files.modified, name=b'file'), + added=fm.formatlist(files.added, name=b'file'), + removed=fm.formatlist(files.removed, name=b'file'), ) verbose = not self.ui.debugflag and self.ui.verbose To: durin42, #hg-reviewers, indygreg Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel