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:06 pm




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Get History via the cmd line client
PostPosted: Sun Sep 26, 2010 4:10 pm 
Offline

Joined: Sun Sep 26, 2010 4:01 pm
Posts: 2
Hi there,

I would like to get the file history recursively for a project, for a particular user and within a certain date range via the cmd line interface. I know it can be done via the windows UI but I cannot see a way to do it via the cmd line. Is there a way it can be done?

I'm trying to develop a small app that can grab this info for automatic population of a time sheet.

Many thanks,

Rich


Top
 Profile  
 
 Post subject: Re: Get History via the cmd line client
PostPosted: Mon Sep 27, 2010 8:25 am 
Offline
User avatar

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

You can use GetProjectHistory command provided by SourceAnywhere Hoted Command Line Client. For detailed information, you can refer to:
http://www.dynamsoft.com/help/SAW%20Hos ... meters.htm

Below is an example for you:

SAWHCmd GetProjectHistory -id 103172 -username logan -pwd *** -repository Default -prj $/23123 -user admin -datetime "16 June 2009|16 September 2010"

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: Get History via the cmd line client
PostPosted: Wed Oct 27, 2010 7:34 pm 
Offline

Joined: Sun Sep 26, 2010 4:01 pm
Posts: 2
Thanks,

I'm actually after the recursive file history for a given project (i.e. all sub projects/folders). I can do it with the UI, which returns exactly what I want, a list of changes. For example:

Through the history UI, set to recursive, for user "Richard", for project "SIMS.DB" and a date of the 25th returns:

SIMS.DB/ConstantsEnums.cs Richard 25/10/2010 09:31 165 Checked in
SIMS.DB/HelperClasses/PersistenceInfoProvider.cs Richard 25/10/2010 09:31 112 Checked in
SIMS.DB/HelperClasses/FieldCreationClasses.cs Richard 25/10/2010 09:31 96 Checked in
SIMS.DB/HelperClasses/FieldInfoProvider.cs Richard 25/10/2010 09:31 111 Checked in
....
...
..

I then have to export it to csv.

Currently, I cannot recursively get history for sub projects - is there another parameter? or do I have to hard code the project/folder structure in my application to match source anywhere and loop through it?

Also, it is return results like this:

206 Richard 28/10/2010 08:02:55 Checked in

77 Richard 27/10/2010 18:48:30 Checked in

205 Richard 27/10/2010 10:54:08 Checked in


It has numbers where I would expect full path file names. I have no idea what they mean... any ideas?

Regards,

Richard


Top
 Profile  
 
 Post subject: Re: Get History via the cmd line client
PostPosted: Thu Oct 28, 2010 12:32 am 
Offline
User avatar

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

Currently, SourceAnywhere Hosted Command Line doesn't support recursively getting project history. Our development team is now working on improving the "GetProjectHistory" command. In the coming new version, a new parameter to recursively get project history will be available. Also, full path of file names will be added in the returned history list.

The new version might be available at the end of this year. Currently, please use GUI Client to get the project history list.

Sorry for the inconvenience caused.

_________________
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:06 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