simplename
simplename

Reputation: 919

Mercurial: open earlier version of file in an editor?

Is there any way to quickly view an earlier version of a file (at an earlier revision) in an text editor?

Thanks

Upvotes: 1

Views: 62

Answers (1)

Peter
Peter

Reputation: 3669

With command line Mercurial:

  • hg cat -r REV -o %s-%r FILE
  • edit FILE-REV
  • del FILE-REV

In TortoiseHG Workbench:

  • Select the desired revision.
  • Open the Revision Details tab.
  • Click the document icon (Show all version-controlled files in tree view)
  • Navigate to the file and right click it.
  • Select View at Revision.

Or starting TortoiseHG from command line:

  • thg filelog FILE
  • Right click the desired revision.
  • Select View at Revision.

Upvotes: 2

Related Questions