Showing posts with label changes. Show all posts
Showing posts with label changes. Show all posts

Friday, November 26, 2010

Re: Clearcase CM Java API - How to find folder changes

Permlink Replies: 4 - Pages: 1 - Last Post: Nov 23, 2010 5:15 PM Last Post By: Mac.Fiennes Threads: [ Previous | Next ]
Posts: 3
Registered: Jul 27, 2010 01:06:03 PM Clearcase CM Java API - How to find folder changes
Posted: Jul 27, 2010 01:16:51 PM I am trying to use the API to find which files changed between different versions of a directory.
To do that I would need to find the bound children for either a CcDirectory or a CcDirectoryVersion and then compare the results.

However, the property CHILD_LIST comes back empty, and CHILD_MAP gives an "operation not supported" error.
I also tried the doReadMemberList(), but that also throws an UnsupportedOperationException.

Is there a way to accomplish this via the API? If the correct way is to use one of the above "unsupported" operations mentioned above, are there any plans to support these functions in an upcoming release?

It seems like this should be possible, since the CCRC Eclipse plugin has no trouble showing the differences between directory versions.

Thanks in advance!


Posts: 3
Registered: Jul 27, 2010 01:06:03 PM Re: Clearcase CM Java API - How to find folder changes
Posted: Aug 04, 2010 02:14:16 PM   in response to: jlevine in response to: jlevine's post Sorry to reply to my own post, but it may be that this question is not easily answerable. Does anyone know of a different forum or way to find an answer to the problem with the API devs?
Posts: 561
Registered: Nov 19, 2007 06:06:36 AM Re: Clearcase CM Java API - How to find folder changes
Posted: Aug 04, 2010 04:29:33 PM   in response to: jlevine in response to: jlevine's post You have a few options:
1. You can compare two directory versions by 'cleartool diff'
2. You can use 'cleartool desc' to get the files that have been changed (it's generated automatically by ClearCase when it catalogues directories)
3. We provide a plug-in that easily reports the differences, including directories. It currently works for UCM only.

Tamir Gefen, GoMidjets
http://www.gomidjets.com


Posts: 3
Registered: Jul 27, 2010 01:06:03 PM Re: Clearcase CM Java API - How to find folder changes
Posted: Aug 05, 2010 03:32:16 PM   in response to: Tgefen in response to: Tgefen's post Sorry, this needs to work in base Clearcase, and I need a solution using the new Java CM API, not using cleartool. Does anyone out there use this API?
Posts: 4
Registered: Sep 09, 2010 07:34:57 PM Re: Clearcase CM Java API - How to find folder changes
Posted: Nov 23, 2010 05:15:00 PM   in response to: jlevine in response to: jlevine's post Tgefen wrote:
You have a few options:
1. You can compare two directory versions by 'cleartool diff'
2. You can use 'cleartool desc' to get the files that have been changed (it's generated automatically by ClearCase when it catalogues directories)
3. We provide a plug-in that easily reports the differences, including directories. It currently works for UCM only.

Tamir Gefen, GoMidjets
http://www.gomidjets.com


Thanks for your analysis! Now I understand more about it, It helps me out of the problem, It's comprehensive.Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here

Wednesday, November 10, 2010

Re: How to find changes occured between labels applies. In snapshot context.


Posts: 3
Registered: Aug 25, 2010 09:20:27 AM How to find changes occured between labels applies. In snapshot context.
Posted: Nov 05, 2010 07:02:22 AM Hi,
I have some file in VOB and they have labels. Ex.
\file.txt@@\main\5 with label MyLABEL_v1
\file.txt@@\main\10 with label MyLABEL_v2
and main latest is ex \main\20
I would like to list all versions between those with MyLABEL_v1 and MyLABEL_v2
so expected results are:
\file.txt@@\main\6
\file.txt@@\main\7
\file.txt@@\main\8
\file.txt@@\main\9
\file.txt@@\main\10

Second requirement is that I need this list for each file in current snapshot view. It is critical.

I can also rely on dates instead of labels. But when I provide in cleartool commands like:

find E:\myView\MyVOB -version "created_since(2010-10-27T09:13:08+02:00) && (! created_since(2010-11-01T09:13:08+02:00)) " -print

Returned list seems to be OK but contains informations about files which are not loaded to my view.


Posts: 65
Registered: Nov 17, 2006 05:38:41 AM Re: How to find changes occured between labels applies. In snapshot context.
Posted: Nov 08, 2010 08:40:47 AM   in response to: JanRoman in response to: JanRoman's post If you use the solution with created_since, try to add the option -visible (selects only elements that are visible in your view). However the option created_since does not guarantee that you will get what you are looking for (you never know when the labels have been applied).

Otherwise, I don't know how you can do your original query in a single cleartool command using labels. I would query for all versions that have the most recent label, and then lookup for each version their predecessor, and then the predecessor's predecessor etc... Until you find the version that has your first label.

Regards,
Marc

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here

Sunday, November 7, 2010

How to find changes occured between labels applies. In snapshot context.


Posts: 3
Registered: Aug 25, 2010 09:20:27 AM How to find changes occured between labels applies. In snapshot context.
Posted: Nov 05, 2010 07:02:22 AM Hi,
I have some file in VOB and they have labels. Ex.
\file.txt@@\main\5 with label MyLABEL_v1
\file.txt@@\main\10 with label MyLABEL_v2
and main latest is ex \main\20
I would like to list all versions between those with MyLABEL_v1 and MyLABEL_v2
so expected results are:
\file.txt@@\main\6
\file.txt@@\main\7
\file.txt@@\main\8
\file.txt@@\main\9
\file.txt@@\main\10

Second requirement is that I need this list for each file in current snapshot view. It is critical.

I can also rely on dates instead of labels. But when I provide in cleartool commands like:

find E:\myView\MyVOB -version "created_since(2010-10-27T09:13:08+02:00) && (! created_since(2010-11-01T09:13:08+02:00)) " -print

Returned list seems to be OK but contains informations about files which are not loaded to my view.

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here