Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
180 views
in Technique[技术] by (71.8m points)

java - How to use CCRC to get old file versions?

I'm trying to use CCRC API in order to get, for instance, all versions for a specific file and get some old file version.

I've tried to use CHILD_LIST, CHILD_MAP, tried to use CcFile.getVersion().getPredecessor() and then use CcFile.doReadProperties(...) but it seems that the location is remote and then is not possible to get the file using for example getClientPath().

I already saw that is possible to retrieve all versions for a specific file using CCRC plugin and select a specific version clicking in the version three.

Does anybody have some example how to retrieve this version without setting the config spec ?

tks Kleber

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The CCRC CLI is not very complete in 7.X, and even the first 8.0.0.x.

rcleartool is completed with the latest 8.x releases, and included a rcleartool get which allows you to access any version you want.

See more details at "How to use CCRC to get prievous file version?".


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...