I want to programmatically find out if a workspace has the latest files. I don't want to do a Workspace.Get()
, because that performs the equivalent of "Get Latest". I just want to know if my workspace needs a "Get Latest" or not.
I'm doing this check during a Build.I plan on having a method like so:
public static bool HasLatestFiles(Workspace ws)
{
bool hasChanges = false;
/* need correct code to query if ws has latest files */
return hasChanges;
}
What is the correct code to use?