Update local modified date

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
clabough
Posts: 27
Joined: Thu Sep 15, 2005 4:55 pm

Update local modified date

Post by clabough » Thu Oct 04, 2012 1:16 pm

I have a lot of local files that have their modified date out of sync with the repository, but their version number is the same. Is there a way for me to force a get all so that it replaces the local files with the correct timestamp? I'm using Vault 5.1.1 it seems that it only looks at the version number and I cannot override that. I don't want to delete all local files and do a get because there are a number of files that do not go into the repository.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Update local modified date

Post by Beth » Thu Oct 04, 2012 1:53 pm

You can try a Get with the Overwrite option, but during your Get, when the options window opens, make sure that it's set to set the time stamp to Modification. You may have it set to use the current time for the time stamp which would explain why the timestamps don't match. Current is the default.

You can change the default time stamp used on a Get in Vault Tools - Options - Local Files in the Set File Time option.
Beth Kieler
SourceGear Technical Support

clabough
Posts: 27
Joined: Thu Sep 15, 2005 4:55 pm

Re: Update local modified date

Post by clabough » Thu Oct 04, 2012 2:01 pm

Yup, tried that many times. It doesn't actually do the get because the version numbers are the same.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Update local modified date

Post by Beth » Thu Oct 04, 2012 3:30 pm

Since you don't want to remove the current files, one thing you could do is perform a Get to a different location than the working folder with the modification time stamp set, then drop those files on top of your working folder.

Otherwise you will have to remove the files on disk.
Beth Kieler
SourceGear Technical Support

clabough
Posts: 27
Joined: Thu Sep 15, 2005 4:55 pm

Re: Update local modified date

Post by clabough » Thu Oct 04, 2012 3:33 pm

OK, thanks. I was just reading about Robocopy options and think I can also sync the timestamps between folders that way as well.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Update local modified date

Post by Beth » Thu Oct 04, 2012 3:53 pm

Thanks for the update.
Beth Kieler
SourceGear Technical Support

Post Reply