Mercurial 和 KDiff3 —— 可以直接展开所有文件夹吗?
使用 Mercurial,每次 a
hg vdiff
调用 kdiff3 时,需要执行 2 个步骤:
1) 关闭显示有多少文件正在比较的弹出窗口
2)进入目录->展开所有子目录
有没有办法跳过步骤 1 和步骤 2 并让它自动展开所有文件夹并显示文件?
With Mercurial, every time a
hg vdiff
which invokes kdiff3, there are 2 steps that need to be done:
1) close the pop up that says how many files are diff'ing
2) go to Directory -> Unfold all Subdirs
Is there a way to skip the step 1 and step 2 and have it automatically expand all folders and show the files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
kdiff3 版本 0.9.98 在设置 -> 下有 2 个复选框可用。配置 KDiff ->目录:“加载时展开所有子目录”和“跳过目录报告状态”。
There are 2 check-boxes available on kdiff3 Version 0.9.98 under Settings -> Configure KDiff -> Directory: "Unfold all subdirectories on load" and "Skip directory report status".
嗯,这完全取决于 kdiff3,但是如果您可以找到一个以扩展模式启动 kdiff3 的命令行选项,您可以在 ExtdiffExtension,这是某人为您配置的功能。可以在任何
hgrc
中进行配置,可以是每个存储库 (.hg/hgrc
)、每个用户 (~/.hgrc
) ,或系统范围 (/etc/mercurial'hgrc
)。如果您不记得设置它,它可能位于系统范围的位置。如果您想确切地了解最新版本的 Mercurial 中的设置来自何处,您可以使用以下命令:
在那里查找 kdiff3,您将准确地找到要调整的文件和行。
Hrm, that'll be entirely up to kdiff3, but if you can find a command line option that starts kdiff3 out in expanded mode you'll can tweak the vdiff string in the configuration lines for the ExtdiffExtension, which is the feature someone has configured for you. That can be configured in any
hgrc
which can be per-repo (.hg/hgrc
), per-user (~/.hgrc
), or system-wide (/etc/mercurial'hgrc
). If you don't recall setting it up it's probably in the system-wide location.If you want to see exactly where as setting is coming from in a recent version of Mercurial you can use the command:
look for kdiff3 there and you'll find exactly what file and line to tweak.
这似乎不可能,因为它不在 kdiff3 的 命令行选项 中,并且没有从
kdiff3 --confighelp
中可以看到它的配置项。我想你可以破解源代码。它是 Qt,所以不会很难,不是吗?
(顺便说一句,Beyond Compare 有 -expandall 选项,正是这样做的。我不想听起来像是我从 Scooter Software 获得佣金,但 BC 确实超出了我见过的任何差异/合并工具。有一件事 kdiff3 可以但 BC 不能:3 目录比较。)
It doesn't seem possible, as it's not in kdiff3's command line options, and there's no config item for it as seen from
kdiff3 --confighelp
.I guess you can hack the source. It's Qt so it can't be hard, can it?
(BTW Beyond Compare has -expandall option that does exactly that. I don't want to sound like I get commission from Scooter Software, but BC is literally beyond any diff/merge tool that I've seen. There's one thing that kdiff3 can but BC cannot, though: 3-directory comparison.)