문제

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