equal
deleted
inserted
replaced
98 " |
98 " |
99 let l:cmd = 'hg id ' . g:hgrevFlags . ' ' . l:root |
99 let l:cmd = 'hg id ' . g:hgrevFlags . ' ' . l:root |
100 let l:rev = system( l:cmd ) |
100 let l:rev = system( l:cmd ) |
101 let l:hg_exit = v:shell_error |
101 let l:hg_exit = v:shell_error |
102 |
102 |
103 if l:hg_exit == 0 |
103 if l:hg_exit != 0 |
104 let l:rev = substitute( l:rev, '\n', '', 'g' ) |
104 return |
105 let g:hg_revs[ l:key ] = l:rev |
|
106 endif |
105 endif |
|
106 |
|
107 let l:rev = substitute( l:rev, '\n', '', 'g' ) |
|
108 let g:hg_revs[ l:key ] = l:rev |
107 |
109 |
108 " Add file repo status. |
110 " Add file repo status. |
109 " |
111 " |
110 if g:hgrevAddStatus == 1 |
112 if g:hgrevAddStatus == 1 |
111 let l:cmd = 'hg stat ' . bufname('%') |
113 let l:cmd = 'hg stat ' . bufname('%') |