comparison plugin/lawrencium.vim @ 17:5c6c605d0660

Better output for `hg commit`.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 13 Dec 2011 17:18:08 -0800
parents 724f6db3baa2
children 4f04d5e052eb
comparison
equal deleted inserted replaced
16:724f6db3baa2 17:5c6c605d0660
596 " Get the repo and commit with the given message. 596 " Get the repo and commit with the given message.
597 let l:repo = s:hg_repo() 597 let l:repo = s:hg_repo()
598 let l:output = l:repo.RunCommand('commit', '-l', a:log_file) 598 let l:output = l:repo.RunCommand('commit', '-l', a:log_file)
599 if a:show_output && l:output !~# '\v%^\s*%$' 599 if a:show_output && l:output !~# '\v%^\s*%$'
600 call s:trace("Output from hg commit:", 1) 600 call s:trace("Output from hg commit:", 1)
601 echom l:output 601 for l:output_line in split(l:output, '\n')
602 echom l:output_line
603 endfor
602 endif 604 endif
603 endfunction 605 endfunction
604 606
605 call s:AddMainCommand("-bang Hgcommit :execute s:HgCommit(<bang>0, 0)") 607 call s:AddMainCommand("-bang Hgcommit :execute s:HgCommit(<bang>0, 0)")
606 call s:AddMainCommand("-bang Hgvcommit :execute s:HgCommit(<bang>0, 1)") 608 call s:AddMainCommand("-bang Hgvcommit :execute s:HgCommit(<bang>0, 1)")