darcs 的图形差异
我对纯文本格式的 darcs 更改感到不太舒服,因此我一直在寻找一种工具来显示更改的良好并排比较。
对于 whatsnew
我可以只使用 meld
,但是当我需要查看已记录的更改时,它就不那么容易工作了。我读过 diffuse
允许比较不同的修订版,但我无法让它工作。
我已经尝试过,
diffuse -r HEAD^1 -r HEAD^2 myfile.py
但失败了(我认为修订命名是特定于git的),那么有人知道如何查看darcs的最新更改吗?
欢迎提出其他可以完成此工作(并且最好不需要设置 Web 服务器)的工具的建议。
I don't feel very comfortable seeing the darcs changes in plain text format, so I've been looking for a tool to display a nice side-by-side comparison of the changes.
For the whatsnew
I can just use meld
, but when I need see the changes already recorded it does not work as easily. I've read that diffuse
allows to compare different revisions, but I cannot get it to work.
I've tried
diffuse -r HEAD^1 -r HEAD^2 myfile.py
but it fails (I think that revision naming is specific to git), so does somebody know how to see the latest changes in darcs?
Suggestions for other tool that does the work (and does not require to set up a web server preferably) are welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实上你应该这样写:
它与 ECMerge (我使用的工具)一起工作,它应该与 diff 无缝工作。 Darcs 将根据需要使用临时文件调用 diff(以比较存储库中的文件)。顺便说一句,ECMerge 可以通过其浏览器 UI 挖掘 Darcs 配置。
编辑:
要比较存储库中的标签或补丁,请使用
--from-tag=
或--from-patch=
和--to-tag=< /code> 或
)--to-patch=
表示法。您应该能够执行您想要的操作,但请注意,from-patch
表示“从补丁之前开始”,--to-patch
表示“直到补丁之后”。这对我来说并不是很明显......(要了解最后的更改,请使用 darcs 更改
in fact you should write something like:
It works with ECMerge (the tool I work on), it should work seamlessly with diffuse. Darcs will call diffuse with temporary files as necessary (to compare the files from the repository). By the way, ECMerge can dig in Darcs configurations with its browser UI.
EDITED:
to diff tags or patches in the repository, use
--from-tag=
or--from-patch=
and--to-tag=
or--to-patch=
notation. You should be able to do what you want, however note thatfrom-patch
means "from before patch" and--to-patch
means "up to after patch". it was not really obvious for me...(to know the last of changes use
darcs changes
)我不知道如何与 Darcs 集成,但是 KDiff3 是一个出色的图形差异/合并应用程序,适用于 Linux 、macOS 和 Windows。
I do not know how to integrate with darcs, but KDiff3 is a wonderful graphical diff/merge application available both for linux, macos and windows.