##// END OF EJS Templates
resolve: add support for log-like template keywords and functions...
Yuya Nishihara -
r38562:e8c33e27 default
parent child Browse files
Show More
@@ -4534,7 +4534,8 b' def resolve(ui, repo, *pats, **opts):'
4534 4534 ui.pager('resolve')
4535 4535 fm = ui.formatter('resolve', opts)
4536 4536 ms = mergemod.mergestate.read(repo)
4537 m = scmutil.match(repo[None], pats, opts)
4537 wctx = repo[None]
4538 m = scmutil.match(wctx, pats, opts)
4538 4539
4539 4540 # Labels and keys based on merge state. Unresolved path conflicts show
4540 4541 # as 'P'. Resolved path conflicts show as 'R', the same as normal
@@ -4554,6 +4555,7 b' def resolve(ui, repo, *pats, **opts):'
4554 4555
4555 4556 label, key = mergestateinfo[ms[f]]
4556 4557 fm.startitem()
4558 fm.context(ctx=wctx)
4557 4559 fm.condwrite(not nostatus, 'status', '%s ', key, label=label)
4558 4560 fm.write('path', '%s\n', f, label=label)
4559 4561 fm.end()
@@ -162,6 +162,10 b' resolve -l should show resolved file as '
162 162 }
163 163 ]
164 164
165 $ hg resolve -l -T '{path} {status} {p1rev} {p2rev}\n'
166 file1 R 2 1
167 file2 U 2 1
168
165 169 resolve -m without paths should mark all resolved
166 170
167 171 $ hg resolve -m
General Comments 0
You need to be logged in to leave comments. Login now