##// 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 unresolvedpaths = attr.ib()
788 unresolvedpaths = attr.ib()
789 _label = b'status.morestatus'
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 def formatfooter(self, fm):
795 def formatfooter(self, fm):
792 statemsg = _(b'The repository is in an unfinished *%s* state.'
796 statemsg = _(b'The repository is in an unfinished *%s* state.'
793 ) % self.unfinishedop
797 ) % self.unfinishedop
@@ -6893,6 +6893,8 b' def status(ui, repo, *pats, **opts):'
6893 (b' %s' + end) % uipathfn(copy[f]),
6893 (b' %s' + end) % uipathfn(copy[f]),
6894 label=b'status.copied',
6894 label=b'status.copied',
6895 )
6895 )
6896 if morestatus:
6897 morestatus.formatfile(f, fm)
6896
6898
6897 if morestatus:
6899 if morestatus:
6898 morestatus.formatfooter(fm)
6900 morestatus.formatfooter(fm)
@@ -64,7 +64,8 b''
64 [
64 [
65 {
65 {
66 "path": "a",
66 "path": "a",
67 "status": "M"
67 "status": "M",
68 "unresolved": true
68 },
69 },
69 {
70 {
70 "path": "a.orig",
71 "path": "a.orig",
General Comments 0
You need to be logged in to leave comments. Login now