The leading provider of version control solution and TWAIN SDK
The leading provider of version control solution and TWAIN SDK

Dynamsoft Forums

Support for Version Control, Bug Tracking and Configuration Management Software
* Login   * Register
* FAQ    * Search

It is currently Wed May 16, 2012 7:26 pm




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: How to get the history for a project?
PostPosted: Thu May 20, 2010 9:19 am 
Offline

Joined: Thu May 20, 2010 9:08 am
Posts: 2
I'm having trouble trying to determine how I can get the version history for a project (and sub-projects) with the details of the check-in (including the check-in comments) from a certain date to the current date, and have that output to a file.

I've come up with this so far,

"GetProjectHistory " + sourceAnywhereSwitches + " -prj $/" + VssFolderName + "/Integration -r -includefilehistory -datetime \"" + GetBuildDateTime() + "\"";

however it does not out put the developer's check-in comments.

Any ideas?

Troy


Top
 Profile  
 
 Post subject: Re: How to get the history for a project?
PostPosted: Thu May 20, 2010 9:00 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
Hi Troy,

You can use "GetProjectHistory.Comment" to get comments of the actions. Here is a simple sample of GetProjectHistory:
Dim ResultValue As Long
Dim Canceled As Boolean
Dim ResultDescription As String
Dim datefrom As Date
Dim dateto As Date

Dim ProjectHistorySet As New SAWVProjectHistorySet

ResultDescription = ""
datefrom = Date.MinValue
dateto = Date.MaxValue


' Read the history information of all the files under project "$/comment" on server
ResultValue = sdkObject.GetProjectHistory("$/comment", False, False, ProjectHistorySet, "", datefrom, dateto, Canceled, ResultDescription)

If ResultValue = 0 Then
Dim Count As Long
Count = ProjectHistorySet.Count
Dim Index As Long
For Index = 0 To Count - 1
Dim ProjectHistory As SAWVProjectHistory
ProjectHistory = ProjectHistorySet.Item(Index)
MessageBox.Show("Action:" + ProjectHistory.Action)
MessageBox.Show("Comment:" + ProjectHistory.Comment)
Next
Else
MsgBox("Calling 'GetProjectHistory' function fails.")
End If
If the problem persists, you can contact us via LiveHelp to have a GoToMeeting session. With GoToMeeting, you can share your desktop and give us controls of your mouse and keyboard when necessary. Our LiveHelp can be found at:
http://www.dynamsoft.com/support/livehelp.aspx

Thanks,

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: How to get the history for a project?
PostPosted: Tue May 25, 2010 2:28 am 
Offline

Joined: Thu May 20, 2010 9:08 am
Posts: 2
Thanks Catherine for the info, my only question now is how do I get the SDK? We have 'SourceAnywhere for VSS Professional Edition'.

Troy


Top
 Profile  
 
 Post subject: Re: How to get the history for a project?
PostPosted: Tue May 25, 2010 10:56 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
Hi Troy,
You can download SourceAnywhere for VSS 5.4 Professional SDK at:

COM SDK: http://www.dynamsoft.com/Downloads/DownloadLog.aspx?server=1&path=sourceanywhere&product=Dynamsoft%20SourceAnywhere%20for%20VSS%205.4%20Professional%20SDK.exe
Java SDK: http://www.dynamsoft.com/Downloads/DownloadLog.aspx?server=1&path=sourceanywhere/SAWVJAVAClient&product=SAWVSDK5.4.zip

Thanks.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

It is currently Wed May 16, 2012 7:26 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog