Mercurial > vim-lawrencium
comparison plugin/lawrencium.vim @ 82:31801dcca77d
Re-edit a reverted file to see the change.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 07 Mar 2014 00:31:35 -0800 |
parents | a42b0e63a8ea |
children | a383a816d975 |
comparison
equal
deleted
inserted
replaced
81:a42b0e63a8ea | 82:31801dcca77d |
---|---|
1409 endif | 1409 endif |
1410 | 1410 |
1411 " Get the repo and run the command. | 1411 " Get the repo and run the command. |
1412 let l:repo = s:hg_repo() | 1412 let l:repo = s:hg_repo() |
1413 call l:repo.RunCommand('revert', l:filenames) | 1413 call l:repo.RunCommand('revert', l:filenames) |
1414 | |
1415 " Re-edit the file to see the change. | |
1416 edit | |
1414 endfunction | 1417 endfunction |
1415 | 1418 |
1416 call s:AddMainCommand("-bang -nargs=* -complete=customlist,s:ListRepoFiles Hgrevert :call s:HgRevert(<bang>0, <f-args>)") | 1419 call s:AddMainCommand("-bang -nargs=* -complete=customlist,s:ListRepoFiles Hgrevert :call s:HgRevert(<bang>0, <f-args>)") |
1417 | 1420 |
1418 " }}} | 1421 " }}} |