如何在命令行上覆盖.hgrc选项? [英] How can I override .hgrc options on the command line?

查看:103
本文介绍了如何在命令行上覆盖.hgrc选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常想要忽略白色空间变化时与汞的差异。如果我把这个默认设置为 ignorews = true 在我的.hgrc的[diff]部分,似乎没有办法强制显示空白在命令行上对单个调用进行更改。我缺少什么?

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:没有相关的命令行选项接受参数。使用(不推荐使用) [defaults] 节具有相同的行为。我假设最终的答案将是使用别名忽略空间,但希望有更好的存在。

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.

推荐答案

hg(1)手册页:

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

这篇关于如何在命令行上覆盖.hgrc选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆