CheckIn issue

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
Posts: 4
Joined: Fri Jan 04, 2013 9:08 am

CheckIn issue

Post by Tsukasa » Thu Apr 04, 2013 8:30 pm

Here is the current scenario
I have a zip file containing many xml files, changed or not. The creation dates will always change as these are generated upon the time being sent.

I do a checkout on the folder to get the latest changes.
Then I replace the files checkout with the files extracted from the zip file.
I get a list of files that are not in vault and add them.
I commit that list and then perform a checkin on the folder for any other pending changes

The issue is vault is showing the files as details: size unchanged and type: modified

So it sees the files as changed and increments my numbers.

any way to accomplish this without checking each file using a difference engine api before adding?

Currently the way I am doing it *which doesn't work if someone is changing a 0 to a 1*
Compare file size on disk to file size in zip.
I need to know if 1 character has change so I can't use this as a permanent solution.

Posts: 3655
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear

Re: CheckIn issue

Post by jclausius » Fri Apr 05, 2013 9:12 am

Could this be resolved with the CRC option mentioned in your other post?
Jeff Clausius

Post Reply