Mercurial > vim-p44vim
comparison autoload/p44vim.vim @ 1:953baa4a16bb
Print P4's output when trace is enabled.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 24 Sep 2020 22:48:03 -0700 |
parents | 4aede5f1af45 |
children | 74b2ef146e82 |
comparison
equal
deleted
inserted
replaced
0:4aede5f1af45 | 1:953baa4a16bb |
---|---|
18 endif | 18 endif |
19 let l:cmd = ['p4'] | 19 let l:cmd = ['p4'] |
20 call extend(l:cmd, l:args) | 20 call extend(l:cmd, l:args) |
21 let l:strcmd = join(map(l:cmd, 'shellescape(v:val)')) | 21 let l:strcmd = join(map(l:cmd, 'shellescape(v:val)')) |
22 call s:trace("Running command: ".l:strcmd) | 22 call s:trace("Running command: ".l:strcmd) |
23 silent call system(l:strcmd) | 23 let l:cmd_out = system(l:strcmd) |
24 if g:p44v_trace | |
25 call s:trace(l:cmd_out) | |
26 endif | |
27 return l:cmd_out | |
24 endfunction | 28 endfunction |
25 | 29 |
26 function! s:get_p4_depot_root(path) abort | 30 function! s:get_p4_depot_root(path) abort |
27 let l:cur = a:path | 31 let l:cur = a:path |
28 let l:prev_cur = '' | 32 let l:prev_cur = '' |