I understand that I can print a revision in the terminal with hg cat filename -r, but it is often convuluted and hard to read in the terminal window.

Is there a way I can open a revision with textmate from terminal, similar to using mate filename?

I'd prefer not to have to export the revision, and then open it up in textmate.

Thanks!

有帮助吗?

解决方案

You can use mate - to read from stdin. So you can use hg cat filename -r rev | mate -.

However, the TextMate Mercurial bundle is enabled by default, so if you're already viewing the file in TextMate, use Bundles > Mercurial > View Revision (or ⌘Y6) to pick an older revision to view instead.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top