Вопрос

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