Permalink
Browse files

fix svn commit.

  • Loading branch information...
hrsh7th committed Oct 9, 2012
1 parent 9e46086 commit 86e8ef5e708666465f67e8c1b8aa150afc3e3ac4
Showing with 4 additions and 2 deletions.
  1. +1 −1 autoload/unite/kinds/vcs/status/svn.vim
  2. +3 −1 autoload/vcs/svn/commit.vim
@@ -7,7 +7,7 @@ endfunction
let s:kind = {
\ 'name': 'vcs/status/svn',
- \ 'default_action': 'open',
+ \ 'default_action': 'diff',
\ 'action_table': {},
\ 'parents': ['vcs/status']
\ }
@@ -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

0 comments on commit 86e8ef5

Please sign in to comment.