Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial-如何使用TextMate查看修订版?_Mercurial_Textmate - Fatal编程技术网

Mercurial-如何使用TextMate查看修订版?

Mercurial-如何使用TextMate查看修订版?,mercurial,textmate,Mercurial,Textmate,我知道我可以用hg cat filename-r在终端中打印修订,但在终端窗口中,它经常会被扭曲,难以阅读 是否有一种方法可以从终端使用textmate打开修订版,类似于使用mate filename 我不希望导出修订版,然后在textmate中打开它 谢谢 您可以使用mate-读取stdin。因此,您可以使用hg cat filename-r rev | mate- 但是,默认情况下会启用TextMate Mercurial捆绑包,因此如果您已经在TextMate中查看文件,请使用捆绑包Mer

我知道我可以用
hg cat filename-r
在终端中打印修订,但在终端窗口中,它经常会被扭曲,难以阅读

是否有一种方法可以从终端使用textmate打开修订版,类似于使用
mate filename

我不希望导出修订版,然后在textmate中打开它


谢谢

您可以使用
mate-
读取
stdin
。因此,您可以使用
hg cat filename-r rev | mate-


但是,默认情况下会启用TextMate Mercurial捆绑包,因此如果您已经在TextMate中查看文件,请使用捆绑包Mercurial查看修订版(或⌘Y6)选择较旧的版本进行查看。

谢谢。我所有的Mercurial bundle捷径都设置为⌃⇧M虽然:(.你是手动设置了你的捷径,还是已经设置好了?它们就是这样设置的。我昨天刚从macromates.com下载了一份新的TextMate来回答你的问题;实际上我以前从未使用过它。