Question

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!

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top