Contact us


All times are UTC - 8 hours



Post new topic Reply to topic  [ 4 posts ] 
Author Message
Offline Profile  


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


Offline Profile  


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1315
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
Follow us@Twitter, Facebook


Offline Profile  


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


Offline Profile  


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1315
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
Follow us@Twitter, Facebook


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ]  Moderators: Robert, Catherine


Who is online

Users browsing this forum: No registered users and 1 guest


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:
cron
Copyright © 2016 Dynamsoft | All Rights Reserved
dynamic designed by Dynamsoft team