Treat v:shell_error >= 2 as "not version controlled" for AccuRev

When a user isn't logged in, "accurev diff" will return an exit code of
52.  Since the only well defined values are 0 or 1, treat anything else
as unversioned.
This commit is contained in:
James McCoy 2016-04-08 11:16:14 -04:00
parent 6b4abcd754
commit 37376d9970

View File

@ -76,7 +76,7 @@ endfunction
" Function: #get_diff_accurev {{{1
function! sy#repo#get_diff_accurev() abort
let diff = s:run(g:signify_vcs_cmds.accurev, b:sy_info.file, 1)
return (v:shell_error == 2) ? [0, ''] : [1, diff]
return (v:shell_error >= 2) ? [0, ''] : [1, diff]
endfunction
" Function: #get_diff_perforce {{{1