Mercurial > vim-lawrencium
comparison plugin/lawrencium.vim @ 94:27d5d85ab918
Make sure paths in the commit message are relative to the repo.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 20 Jul 2014 21:39:46 -0700 |
parents | bc5a8dff3fa0 |
children | d38be34b403b |
comparison
equal
deleted
inserted
replaced
93:bc5a8dff3fa0 | 94:27d5d85ab918 |
---|---|
1415 let l:msg .= "HG: Write and quit buffer to proceed.\n" | 1415 let l:msg .= "HG: Write and quit buffer to proceed.\n" |
1416 let l:msg .= "HG: --\n" | 1416 let l:msg .= "HG: --\n" |
1417 let l:msg .= "HG: user: " . split(a:repo.RunCommand('showconfig ui.username'), '\n')[0] . "\n" | 1417 let l:msg .= "HG: user: " . split(a:repo.RunCommand('showconfig ui.username'), '\n')[0] . "\n" |
1418 let l:msg .= "HG: branch '" . split(a:repo.RunCommand('branch'), '\n')[0] . "'\n" | 1418 let l:msg .= "HG: branch '" . split(a:repo.RunCommand('branch'), '\n')[0] . "'\n" |
1419 | 1419 |
1420 execute 'lcd ' . a:repo.root_dir | |
1420 if len(a:filenames) | 1421 if len(a:filenames) |
1421 let l:status_lines = split(a:repo.RunCommand('status', a:filenames), "\n") | 1422 let l:status_lines = split(a:repo.RunCommand('status', a:filenames), "\n") |
1422 else | 1423 else |
1423 let l:status_lines = split(a:repo.RunCommand('status'), "\n") | 1424 let l:status_lines = split(a:repo.RunCommand('status'), "\n") |
1424 endif | 1425 endif |