Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

clearcase remote client - How to use CCRC to get prievous file version?

I'm trying to use CCRC API in order to get pervious versions for a specific file and compare with the checkout file.

I know ClearCase can use get command. But how it works in CCRC API?

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

Thanks, Crispy

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

rcleartool has seen new commands with CC8.0.0.3 and CC8.0.4, but is still missing a 'get' command except for the very latest ClearTeam version (8.0.1: see the rcleartool list of commands).
I said as much in "How do I retreive previous or old version in CCRC 7.1.2".

With CCRC 8 (aka ClearTeam Explorer) supporting dynamic view, you can try and use version-extended path (or rcleartool get), but if you are talking about CCRC, you are likely to be with a ClearCase 7.2.x instead of 8.x.

A separate dedicated web view, with a config spec you can change remains for now your safest as in "available right now") option.


I'm writing code to compare my checkout file(some code is modified) with the latest version in clearcase. So I have to get the content of the previous version to compare with my checkout file.

That seems more a job for rcleartool diff -pred

-pre/decessor

Effectively converts the first pname argument into two names:

  • (1) the predecessor version of pname in the version tree;
  • (2) pname itself.

If pname specifies a checked-out version, the predecessor is the version from which it was checked out.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...