JElchison / export-surround-to-git

Python script to export history from Seapine Surround in a format parsable by `git fast-import`
GNU General Public License v2.0
12 stars 18 forks source link

Get better granularity on timestamps outputted by sscm history #14

Open JElchison opened 10 years ago

JElchison commented 10 years ago

Right now, sscm history outputs timestamps with granularity of minutes (seconds always are 00). Find a way to get seconds, so that we can replay events in the right order.

If we can't do this, perhaps we'll need to be smarter about what order we replay events (topological sort?).

JElchison commented 9 years ago

Can we get better granularity via the API's sscm_file_history() call?

JElchison commented 9 years ago

sscm_file_history() seems to return date as a time_t, so there's hope...

JElchison commented 9 years ago

Solution found: sscm_file_history() indeed returns date as a time_t. Broken out into separate sscmhist C application.

Still need to integrate it with the Python script.

NOTE: Python can get a bunch of the args (except the password) from the cached info in sscm setinfo.