# HG changeset patch # User Ludovic Chabant # Date 1323734355 28800 # Node ID a7bf37a97a1b338d05bfc229595279c94470f045 # Parent b4baab0a4a92f29f88c00754c31451f054e6b1c8 Clean the 'HG:' lines from the commit message (apparently 'hg commit' doesn't do it with -o). diff -r b4baab0a4a92 -r a7bf37a97a1b plugin/lawrencium.vim --- a/plugin/lawrencium.vim Mon Dec 12 15:21:20 2011 -0800 +++ b/plugin/lawrencium.vim Mon Dec 12 15:59:15 2011 -0800 @@ -468,8 +468,14 @@ return endif + call s:trace("Committing with log file: " . a:log_file) + + " Clean up all the 'HG:' lines from the commit message. + let l:lines = readfile(a:log_file) + call filter(l:lines, "v:val !~# '\\v^HG:'") + call writefile(l:lines, a:log_file) + " Get the repo and commit with the given message. - call s:trace("Committing with log file: " . a:log_file) let l:repo = s:hg_repo() let l:output = l:repo.RunCommand('commit', '-l', a:log_file) if a:show_output