Hi,
I am very new to sourcegear. I just want to get the current folder history. How can I do that by just passing the repository path?
thank you very much.
Jack
Get folder history
Moderator: SourceGear
Re: Get folder history
Check the API examples here:
http://support.sourcegear.com/viewtopic.php?f=31&t=8020
Specifically:
http://support.sourcegear.com/viewtopic.php?f=31&t=8020
Specifically:
Code: Select all
//Query the file history so we can view the check in.
bool bRecursive = false;
int beginVersion = -1;
int endVersion = -1;
VaultHistoryItem[] items = ServerOperations.ProcessCommandHistory(filePath, bRecursive, DateSortOption.desc, null, null, VaultDate.EmptyDate().ToString(), VaultDate.EmptyDate().ToString(), null, null, beginVersion, endVersion, 10);
// output the history items
xml.WriteStartElement("root");
xml.WriteStartElement("History");
XmlHelper.XmlOutput(xml, items);
xml.WriteEndElement();
xml.Close();
Console.Out.WriteLine(sw.ToString());
}
public static void WildcardTasks()
{
string url = "http://VaultServer/VaultService";
string username = "username";
string password = "password";
string repository = "Your Repository";
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager