add support for fossil

This commit is contained in:
Marco Hinz 2013-04-16 11:37:57 +02:00
parent 72393c1ee6
commit eaf722e5bf
3 changed files with 13 additions and 3 deletions

View File

@ -10,7 +10,7 @@ It's __fast__, __highly configurable__ and __well documented__.
Features:
- supports git, mercurial, darcs, bazaar, subversion, cvs, rcs
- supports git, mercurial, darcs, bazaar, subversion, cvs, rcs, fossil
- quick jumping between changed lines
- apart from signs there is also optional line highlighting
- fully configurable through global variables (options and mappings)
@ -97,6 +97,7 @@ Current the following VCS are supported:
- subversion (svn)
- cvs
- rcs
- fossil
#### quick jumping between changed lines

View File

@ -53,6 +53,7 @@ version control system:
- subversion
- cvs
- rcs
- fossil
The plugin defines 4 new kinds of signs and their corresponding highlighting
groups. It tries to inherent existing colors from the SignColumn group, if
@ -96,7 +97,7 @@ not defaults.
let g:signify_vcs_list = [ 'git', 'hg' ]
Default: ['git', 'hg', 'svn', 'darcs', 'bzr', 'cvs', 'rcs']
Default: ['git', 'hg', 'svn', 'darcs', 'bzr', 'fossil', 'cvs', 'rcs']
This variable determines the VCS to check for and in what order. If you only
use git and mercurial, you can shorten the list to the shown example. If you

View File

@ -14,7 +14,7 @@ let s:other_signs_line_numbers = {}
" overwrite non-signify signs by default
let s:sign_overwrite = get(g:, 'signify_sign_overwrite', 1)
let s:vcs_list = get(g:, 'signify_vcs_list', [ 'git', 'hg', 'svn', 'darcs', 'bzr', 'cvs', 'rcs' ])
let s:vcs_list = get(g:, 'signify_vcs_list', [ 'git', 'hg', 'svn', 'darcs', 'bzr', 'fossil', 'cvs', 'rcs' ])
let s:id_start = 0x100
let s:id_top = s:id_start
@ -292,6 +292,14 @@ function! s:repo_get_diff_darcs(path) abort
endif
endfunction
" Function: s:repo_get_diff_fossil {{{1
function! s:repo_get_diff_fossil(path) abort
if executable('fossil')
let diff = system('cd '. s:escape(fnamemodify(a:path, ':h')) .' && fossil set diff-command "'. s:difftool .' -U 0" && fossil diff --unified -c 0 -- '. s:escape(a:path))
return v:shell_error ? '' : diff
endif
endfunction
" Function: s:repo_get_diff_cvs {{{1
function! s:repo_get_diff_cvs(path) abort
if executable('cvs')