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

Re: cvs commit: apr/test testfileinfo.c

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2003-07-09 18:03:19 CEST

On Wed, Jul 09, 2003 at 07:51:59AM -0500, Ben Collins-Sussman wrote:
[snip]
> > Does a propchange on a directory affect its mtime? Etc. ad nauseam.
>
> Hmmmm, yeah, I guess one could commit a propchange to a directory, and
> then it would have a timestamp newer than its contents. I wonder if
> that would mess up any working copies.
[snip]

There's nothing wrong with having a directory that's got a newer
timestamp than any of the files it contains:

$ mkdir test
$ cd test
$ touch something
$ ls -al
total 6
drwxr-xr-x 2 michael michael 1024 Jul 9 17:58 .
drwxrwxrwt 15 root root 5120 Jul 9 17:58 ..
-rw-r--r-- 1 michael michael 0 Jul 9 17:58 something
$ sleep 60
$ touch test
$ rm test
$ ls -al
total 6
drwxr-xr-x 2 michael michael 1024 Jul 9 17:59 .
drwxrwxrwt 15 root root 5120 Jul 9 17:58 ..
-rw-r--r-- 1 michael michael 0 Jul 9 17:58 something

I should hope that wouldn't mess up a working copy :)

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 9 18:04:34 2003

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.