Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix svn commit.

  • Loading branch information...
commit 86e8ef5e708666465f67e8c1b8aa150afc3e3ac4 1 parent 9e46086
@hrsh7th authored
View
2  autoload/unite/kinds/vcs/status/svn.vim
@@ -7,7 +7,7 @@ endfunction
let s:kind = {
\ 'name': 'vcs/status/svn',
- \ 'default_action': 'open',
+ \ 'default_action': 'diff',
\ 'action_table': {},
\ 'parents': ['vcs/status']
\ }
View
4 autoload/vcs/svn/commit.vim
@@ -63,9 +63,11 @@ function! s:make_msgfile()
call vcs#execute(['cd', root])
try
- let status = map(vcs#vcs('status', s:files), "v:val.status . v:val.path[len(root) + 1:-1]")
+ let status = filter(vcs#vcs('status', [root]), "index(s:files, v:val.path) > -1")
+ let status = map(status, "v:val.status . v:val.path[len(root) + 1:-1]")
call writefile(['', g:vcs#svn#commit_ignore, ''] + status, g:vcs#svn#commit_msgfile)
catch
+ echomsg v:exception
endtry
call vcs#execute(['cd', save])
endfunction
Please sign in to comment.
Something went wrong with that request. Please try again.