[PATCH] hgcommnd.vim had conflicts with !sudo tee

Matt Mackall mpm at selenic.com
Thu May 29 17:24:20 CDT 2014


On Sat, 2014-05-03 at 19:28 +0430, Ali Vakilzade wrote:
> this command is generally used in vim to write current file as root: 
> !sudo tee % >/dev/null
> 
> when I execute this command these error messages popup in vim
> 
> Error detected while processing function 
> <SNR>17_HGSetupBuffer..<SNR>17_HGGetSta
> tusVars..<SNR>17_HGChangeToCurrentFileDir:
> line    5:
> E811: Not allowed to change buffer information now
> Error detected while processing function 
> <SNR>17_HGSetupBuffer..<SNR>17_HGGetSta
> tusVars:
> line   55:
> E811: Not allowed to change buffer information now
> 
> I have added try/catch to those lines of vim plugin to avoid these 
> errors messages:
> 
> # HG changeset patch
> # User Ali Vakilzade <ali.vakilzade at gmail.com>
> # Date 1399128111 -16200
> #      Sat May 03 19:11:51 2014 +0430
> # Branch stable
> # Node ID ebee81f0b3b9b9d5b90cdda01acfc948fa4f7c24
> # Parent  cadad384c97c7956c98f3c9b92d8cc40fa16d93b
> use try catch in vim plugin to avoid conflicts

I've queued this after fixing various whitespace mangling from your
email client making the summary line conform to our standards, thanks.
Please take a closer look at ContributingChanges on the wiki and your
patches will get handled more quickly.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list