51217

Finding past revisions of files in StarTeam w/ .NET SDK / C#

I'm trying to write a C# program to compare files from different revisions in a StarTeam repository (see if there have been any changes between the current version of a file and a given prior checkin). I currently am able to find/checkout files from the current revision, but am having difficulty in finding the proper methods to then find past versions of these files.

The Borland documentation seems to be rather poor on the .NET side of things at least, could anyone point me in the right direction?

Thank you!

Answer1:

Found the answer.

Given a current revision File, a past revision Item can be created via the File.GetFromHistoryByDate(DateTime) method. The returned Item can then be cast into a File object. If there is no revision history for that file for the given date, the returned objects will be null (but no other errors will be thrown).

If the older File is not null, the objects then can be compared with the File.MD5 hashes.

Recommend

  • It there a need to declare const instance of a class with all attributes const?
  • Python: urllib2.HTTPError: HTTP Error 300: Multiple Choices
  • Enumerating published properties and subproperties in Delphi
  • default configuration change for SBT
  • Is it bad manners to return a heap allocated pointer from a function?
  • UnicodeEncodeError in urllib2
  • Convert the Linux open, read, write, close functions to work on Windows
  • Delphi 7 Soap WCF Service using basicHttpBinding
  • Android Emulator Screen Scale too Large
  • How to project IR image on a 2D plane using OpenCV and PCL
  • I've been taught not to place most methods in a general “System” class but where do they go ins
  • Casting pointers to larger structs to pointers to smaller structs
  • How to limit the increment of variable in mysql
  • Detect Removable Media Ejection Request in Windows Service
  • Is it possible to use Microsoft 2013 sharepoint search server as my search engine for my site
  • `cleartool lsco -r -cvi -me` is extremely slow compared to `cleartool lsco -graphical`. Is it possib
  • How do I determine the revision number of an Android build?
  • How to list all the bucket types in riak?
  • iPython magic for Zipline cannot find data bundle
  • Why does checkout sometimes stage a file?
  • Disable add to cart redirection
  • cursor.fetchone() returns None but row in the database exists
  • c# web browser click on a button with a class name
  • Issue with SVN Commit for certain File Extension
  • Shouldn't else be indented in the below code
  • UWP/C# - Issue with AQS and USB Devices
  • How to make JSON.NET deserialize to Microsoft Date Time?
  • How do I get HTML corresponding to current DOM tree?
  • one Local Olampyad Questions on Informatic in 2011
  • Java applet as stand-alone Windows application?
  • Javascript Callbacks with Object constructor
  • Jquery - Jquery Wysiwyg return html as a string
  • Proper folder structure for lots of source files
  • SQL merge duplicate rows and join values that are different
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • Reading document lines to the user (python)
  • How can i traverse a binary tree from right to left in java?
  • How can I use `wmic` in a Windows PE script?