6

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.

palacsint
  • 28,416
  • 10
  • 82
  • 109
Kirk Kelsey
  • 4,259
  • 1
  • 23
  • 26

1 Answers1

7

From the hg(1) man page:

   --config
          set/override config option (use 'section.name=value')
Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
  • Do you have any example for that option? I tried `hg --config defaults.glog=""` but it doesn't work. Just print the help for basic commands. The `.hgrc` is not changed. – Enze Chi Apr 09 '15 at 05:53
  • Text editor is fine. Everything works. But I think the question here is how to override it from `command line` – Enze Chi Apr 15 '15 at 00:59
  • @EnzoChi: You can override the config file with `--config`. You cannot use `--config` to write to the config file. – Ignacio Vazquez-Abrams Apr 15 '15 at 01:01