[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: "svn st" behavior differs on Windows versus Linux

From: Peter Samuelson <peter_at_p12n.org>
Date: 2007-03-10 21:21:18 CET

[Eric Hanchrow]
> Here's the executive summary of what I see: on *nix, after fiddling
> the timestamp, "svn st" correctly detects that the file is modified,
> whereas on Windows, it thinks the file _isn't_ modified.

It should show that the file is not modified on all OSes. I don't know
how you got it to show that the file is modified on your Linux install.

(By the way, I find 'touch -r reference_file' to be much easier to use
than 'touch -t timestamp', for this kind of testing.)

Anyway, the mtime of a file is supposed to reflect when the file was
last modified. If you modify it in order to fool programs into
thinking the file was modified at a different time than it actually
was, well, that works. You can fool Subversion (and most other
programs that need to know when a file was last modified). So, uh,
don't do that then.

Received on Sat Mar 10 21:21:29 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.