##// END OF EJS Templates
status: add template/json data about whether a file has unresolved conflicts...
Rodrigo Damazio Bovendorp -
r44294:7315464f default
parent child Browse files
Show More
@@ -788,6 +788,10 b' class morestatus(object):'
788 788 unresolvedpaths = attr.ib()
789 789 _label = b'status.morestatus'
790 790
791 def formatfile(self, path, fm):
792 if self.inmergestate and path in self.unresolvedpaths:
793 fm.data(unresolved=True)
794
791 795 def formatfooter(self, fm):
792 796 statemsg = _(b'The repository is in an unfinished *%s* state.'
793 797 ) % self.unfinishedop
@@ -6893,6 +6893,8 b' def status(ui, repo, *pats, **opts):'
6893 6893 (b' %s' + end) % uipathfn(copy[f]),
6894 6894 label=b'status.copied',
6895 6895 )
6896 if morestatus:
6897 morestatus.formatfile(f, fm)
6896 6898
6897 6899 if morestatus:
6898 6900 morestatus.formatfooter(fm)
@@ -64,7 +64,8 b''
64 64 [
65 65 {
66 66 "path": "a",
67 "status": "M"
67 "status": "M",
68 "unresolved": true
68 69 },
69 70 {
70 71 "path": "a.orig",
General Comments 0
You need to be logged in to leave comments. Login now