# HG changeset patch # User Ludovic Chabant # Date 1344659607 25200 # Node ID decbefcf74dba25e2d6bac48fddb1a3e069773eb # Parent a63ec818ab216a535258e6ba25596bbb5762421e Fixed problems with spaces in paths (thanks to @lllama). diff -r a63ec818ab21 -r decbefcf74db plugin/lawrencium.vim --- a/plugin/lawrencium.vim Fri Mar 30 15:29:10 2012 -0700 +++ b/plugin/lawrencium.vim Fri Aug 10 21:33:27 2012 -0700 @@ -594,7 +594,7 @@ call s:HgDiff_DiffThis() else let l:temp_file = tempname() - call l:repo.RunCommand('cat', '-r', '"'.l:rev1.'"', '-o', l:temp_file, l:path) + call l:repo.RunCommand('cat', '-r', '"'.l:rev1.'"', '-o', '"'.l:temp_file.'"', '"'.l:path.'"') execute 'edit ' . fnameescape(l:temp_file) " Make it part of the diff group. call s:HgDiff_DiffThis() @@ -615,7 +615,7 @@ execute l:diffsplit . ' ' . fnameescape(l:path) else let l:temp_file = tempname() - call l:repo.RunCommand('cat', '-r', '"'.l:rev2.'"', '-o', l:temp_file, l:path) + call l:repo.RunCommand('cat', '-r', '"'.l:rev2.'"', '-o', '"'.l:temp_file.'"', '"'.l:path.'"') execute l:diffsplit . ' ' . fnameescape(l:temp_file) " Remember the repo it belongs to. let b:mercurial_dir = l:repo.root_dir