comparison mercurial/cmdutil.py @ 43645:9cb7f855e2fc

cmdutil: convert terse status result back to an scmutil.status This is also part of detupling scmutil.status. Differential Revision: https://phab.mercurial-scm.org/D7397
author Augie Fackler <augie@google.com>
date Thu, 14 Nov 2019 15:27:20 -0500
parents e01e0641f18a
children 0c25e3404e23
comparison
equal deleted inserted replaced
43644:e01e0641f18a 43645:9cb7f855e2fc
759 tersedlist = [] 759 tersedlist = []
760 for st in allst: 760 for st in allst:
761 tersedict[st].sort() 761 tersedict[st].sort()
762 tersedlist.append(tersedict[st]) 762 tersedlist.append(tersedict[st])
763 763
764 return tersedlist 764 return scmutil.status(*tersedlist)
765 765
766 766
767 def _commentlines(raw): 767 def _commentlines(raw):
768 '''Surround lineswith a comment char and a new line''' 768 '''Surround lineswith a comment char and a new line'''
769 lines = raw.splitlines() 769 lines = raw.splitlines()