Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I override .hgrc options on the command line?

I typically want to ignore white space changes when diff'ing with mercurial. If I set this as a default by putting ignorews = true in my .hgrc's [diff] section then there doesn't seem to be a way to force the display of white space changes for a single invocation on the command line. What am I missing?

FWIW: None of the relevant command line options accepts an argument. Using the (deprecated) [defaults] section has the same behavior. I'm assuming the final answer will be "use an alias for ignoring space", but am hopeful something better exists.

like image 838
Kirk Kelsey Avatar asked Jul 22 '10 15:07

Kirk Kelsey


1 Answers

From the hg(1) man page:

   --config
          set/override config option (use 'section.name=value')
like image 178
Ignacio Vazquez-Abrams Avatar answered Oct 11 '22 23:10

Ignacio Vazquez-Abrams