Merge pull request #1027 from chrisbra/hg

Add mq patch to branch output for hg
This commit is contained in:
Bailey Ling 2016-02-15 22:13:04 -05:00
commit d632c88751

View File

@ -102,7 +102,13 @@ endfunction
function! s:get_hg_branch()
if s:has_lawrencium
return lawrencium#statusline()
let stl=lawrencium#statusline()
let mq=system('hg qtop')
if v:shell_error==0 && !empty(stl)
let mq=matchstr(mq, '.*\ze\n')
return printf("%s/%s", stl, mq)
endif
return stl
endif
return ''
endfunction