comparison contrib/vim/hgcommand.vim @ 2635:37bcccf8a683

Correction of commit with a log message in a file
author "Mathieu Clabaut <mathieu.clabaut@gmail.com>"
date Tue, 18 Jul 2006 18:35:47 +0200
parents 105708ba518f
children 733fff9b23f7
comparison
equal deleted inserted replaced
2634:105708ba518f 2635:37bcccf8a683
842 if filereadable(a:messageFile) 842 if filereadable(a:messageFile)
843 let oldCwd=getcwd() 843 let oldCwd=getcwd()
844 if strlen(a:targetDir) > 0 844 if strlen(a:targetDir) > 0
845 execute 'cd' escape(a:targetDir, ' ') 845 execute 'cd' escape(a:targetDir, ' ')
846 endif 846 endif
847 let resultBuffer=s:HGCreateCommandBuffer('commit -F "' . a:messageFile . '" "'. a:targetFile . '"', 'hgcommit', '', a:origBuffNR) 847 let resultBuffer=s:HGCreateCommandBuffer('commit -l "' . a:messageFile . '" "'. a:targetFile . '"', 'hgcommit', '', a:origBuffNR)
848 execute 'cd' escape(oldCwd, ' ') 848 execute 'cd' escape(oldCwd, ' ')
849 execute 'bw' escape(a:messageFile, ' *?\') 849 execute 'bw' escape(a:messageFile, ' *?\')
850 silent execute 'call delete("' . a:messageFile . '")' 850 silent execute 'call delete("' . a:messageFile . '")'
851 return s:HGMarkOrigBufferForSetup(resultBuffer) 851 return s:HGMarkOrigBufferForSetup(resultBuffer)
852 else 852 else