Kirk Kelsey
Kirk Kelsey

Reputation: 4544

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.

Upvotes: 6

Views: 1022

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799430

From the hg(1) man page:

   --config
          set/override config option (use 'section.name=value')

Upvotes: 7

Related Questions