Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IClearCase cc = new ApplicationClass();
- CCVOB vob = cc.get_VOB("\VOB-name");
- CCView view = cc.get_View("ViewTag");
- string[] files = Directory.GetFiles("View path here", "*.*", SearchOption.AllDirectories);
- foreach (string file in files)
- {
- try
- {
- CCVersion ver = cc.get_Version(file);
- Console.WriteLine(ver.Path);
- }
- catch(Exception) {/*the file is not versioned*/}
- }
- Set CC = Wscript.CreateObject("ClearCase.Application")
- Set DirVer = CC.Version(".")
- Set FSO = CreateObject("Scripting.FileSystemObject")
- Set Folder = FSO.GetFolder(DirVer.Path)
- Wscript.Echo "Files under source control: "
- For Each File in Folder.Files
- On Error Resume Next
- Set Ver = CC.Version(File.Name)
- If Err.Number = 0 Then
- Wscript.Echo Ver.ExtendedPath
- End If
- Next
- CCVersion ver;
- lock (_lockObject)
- {
- ver = CCApp.get_Version(fileName);
- vi.Comment = ver.Comment;
- vi.Owner = ver.OID;
- }
Add Comment
Please, Sign In to add comment