简体   繁体   中英

How to get the contents of a specific revision of a file using subclipse

I'm trying to get two versions of a file using subclipse so that they can be compared, the comparison is not the issue and is essentially unimportant.

I'm having trouble finding how exactly I can get a File from the repository, and have been unable to find any real reference material for the API.

If someone could tell me which classes/methods I should use, or even could link me to a reference document that I could use I'd be very thankful!

The simplest way is:

Right click > Compare With > Revision > ...

You get a list of revisions to compare to. Once selected, you see the whole revision in the right-hand panel and the diffs highlighted. If you want, you can just highlight the whole thing and copy-paste it somewhere.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM