开发者

Finding Changed files in a ClearCase folder

开发者 https://www.devze.com 2023-01-11 00:08 出处:网络
I have a Folder in ClearCase that contains a large list of Reports. I have checked all the Reports out because I need to make a sweeping change.

I have a Folder in ClearCase that contains a large list of Reports.

I have checked all the Reports out because I need to make a sweeping change.

I have changed a set of the Reports and now want to deploy this set.

I probably should have checked the Report files out one at a time and then deployed each as I finished.

But, since I did not do that, is there a way to inspect the ClearCase folder that contains the List of checked out开发者_C百科 Reports to see which ones have changed and which ones have not?


You could ask cleartool for a diff with the previous version:

 cleartool lsco -r -cvi -fmt "diff -options \"-hea\" -pred \"%n\"\n" | cleartool | grep ">>>"

That would give you the list of currently checked-out modified files.

Note: remove the '-r' option if you only want the check-out files of the current directory (and not its sub-directories)


In ClearCase (or Explorer if you have integration enabled), right-click the base of the tree, and choose "Find Modified Files". This will return a list of ALL files that have been modified, and that are part of the repo (i.e. it will not return list of private files).

If you want to know all files - checked out, modified, and private - the only way I know of is to use cleartool from within the view:

cleartool ls -r

If you want more (or less) info about the files, check the docs for the -fmt option (which doesn't work with ls, but does work with describe), and you can create a command that will give you exactly what you want (it'll take some experimenting until you get the hang of it).

NOTE: "Find Modified Files" is only available within the gui from the base of the view tree; Elsewhere your only option is "Find Checked Out Files" (confusing, to say the least).


You can set up a second view with an identical config spec as the view with the checked out files. Once you have the second view set up you can compare the same directory in each view with a difference tool (like WinDiff). This will list all the files that have been changed.

It's not native to ClearCase but it should give the results you are looking for.


I also found a solution. I selected my ClearCase folder and clicked on "Find Checkouts". This showed my huge list of Report files that were checked out. I then selected them all and selected "Check In". I left the "Check in if identical to previous version" option unchecked. I then selected "OK" to check in. All the modifeid files checked in and the un-modified files remained checked out. This gave me my delta of modified files vs un-modified files.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号