changeset 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
files plugin/lawrencium.vim
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugin/lawrencium.vim	Wed Jul 16 22:08:31 2014 -0700
+++ b/plugin/lawrencium.vim	Sun Jul 20 21:39:46 2014 -0700
@@ -1417,6 +1417,7 @@
     let l:msg .= "HG: user: " . split(a:repo.RunCommand('showconfig ui.username'), '\n')[0] . "\n"
     let l:msg .= "HG: branch '" . split(a:repo.RunCommand('branch'), '\n')[0] . "'\n"
 
+    execute 'lcd ' . a:repo.root_dir
     if len(a:filenames)
         let l:status_lines = split(a:repo.RunCommand('status', a:filenames), "\n")
     else