[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: Erik Huelsmann <ehuels_at_gmail.com>
Date: Wed, 11 Jun 2008 17:19:28 +0200

On 6/11/08, Reedick, Andrew <jr9445_at_att.com> wrote:
>
>
> > -----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
> svn
> > 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
> *nada*

Did you try 'svn status --force foo.pl'?

> $ svn diff foo.pl
> *nada*

Same here?

> $ 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.

We don't have views, but yes, that's true. The problem has been
reduced in 1.5 by taking the file size into account too.

Bye,

Erik.

---------------------------------------------------------------------
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 17:19:51 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.