Files are "edited" after GETVERSION

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

Moderator: SourceGear

Post Reply
shoover
Posts: 12
Joined: Wed Dec 03, 2008 9:04 am

Files are "edited" after GETVERSION

Post by shoover » Fri Dec 05, 2008 10:05 am

This is to document a little quirk with CLC GETVERSION. If I run it like this:
vault getversion -useworkingfolder 2 $/Dev/Project c:/tmp/wc

... and then look at the folder in the GUI client, the file statuses are all "Edited" even though Local Version and Remote version are the same and there are no differences. This happened because I was scripting with Ruby, whose Dir.pwd method returns a path with slashes even on Windows. The GETVERSION command worked and put the files in the right place, but apparently Vault's internal state is not understanding that c:/tmp/wc and c:\tmp\wc are the same working folder.

The moral is to specify absolute paths with backslashes as the destination_folder on Windows if you want the file status to work correctly.

(This is with 4.0.6.15954)

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

Re: Files are "edited" after GETVERSION

Post by Beth » Fri Dec 05, 2008 11:20 am

Have you checked to see if the timestamps are the same? If one isn't using CRC's to determine differences, then a timestamp change can be seen as a change to the file.
Beth Kieler
SourceGear Technical Support

shoover
Posts: 12
Joined: Wed Dec 03, 2008 9:04 am

Re: Files are "edited" after GETVERSION

Post by shoover » Fri Dec 05, 2008 11:38 am

I've looked at the file times and tried all the options for -setfiletime. The only thing that seems to give the right status is an absolute path with proper backslashes.

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

Re: Files are "edited" after GETVERSION

Post by Beth » Fri Dec 05, 2008 1:12 pm

Thanks for the update.
Beth Kieler
SourceGear Technical Support

Post Reply