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

RE: RE: import files preserving timestamps

From: Reedick, Andrew <jr9445_at_ATT.COM>
Date: Wed, 11 Jun 2008 09:25:14 -0500

> -----Original Message-----
> From: Brian Erickson [mailto:erickson_at_BAUERCONTROLS.com]
> Sent: Tuesday, June 10, 2008 5:11 PM
> To: Reedick, Andrew; Les Mikesell
> Cc: users_at_subversion.tigris.org
> Subject: RE: RE: import files preserving timestamps
> I think SVN uses timestamps for the initial check to see if more work
> needs to be done...
> If <filea> and <fileb> have completely different contents but the same
> timestamp you can copy <filea> overtop of <fileb> and the resulting
> status shows no modifications. Then if you 'touch' the file, svn
> status
> detects the change.
> Brian

I stand corrected. It definitely is keying off of the timestamp.
What's really scary is that 'svn diff' is also keying off of the
timestamp. And there doesn't appear to be a way to force 'svn status'
to run a crc check.

$ svn revert foo.pl
$ time -r foo.pl time.pl
$ vi foo.pl and change/add a few characters
$ svn status foo.pl
M foo.pl
$ touch -r time.pl foo.pl
$ svn status foo.pl
$ svn diff foo.pl
$ diff foo.pl .svn/text-base/foo.pl.svn-base
  *differences shown*

Note to self. Be really careful with 'cp -p' and 'tar xpf' when working
in a view.


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA621

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-11 16:25:52 CEST

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

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