Patchwork D7397: cmdutil: convert terse status result back to an scmutil.status

login
register
mail settings
Submitter phabricator
Date Nov. 14, 2019, 9:10 p.m.
Message ID <differential-rev-PHID-DREV-cx5juaayi6qgxpkjockk-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43201/
State Superseded
Headers show

Comments

phabricator - Nov. 14, 2019, 9:10 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This is also part of detupling scmutil.status.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7397

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel
phabricator - Nov. 15, 2019, 3:26 a.m.
This revision is now accepted and ready to land.
indygreg added a comment.
indygreg accepted this revision.


  I can't believe we were really returning a list here.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7397/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7397

To: durin42, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel

Patch

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -761,7 +761,7 @@ 
         tersedict[st].sort()
         tersedlist.append(tersedict[st])
 
-    return tersedlist
+    return scmutil.status(*tersedlist)
 
 
 def _commentlines(raw):