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

Re: versioned archiving with file metadata using svn (asvn-like)

From: Ph. Marek <philipp.marek_at_bmlv.gv.at>
Date: 2005-12-21 07:22:16 CET

On Tuesday 20 December 2005 14:45, Gunter Ohrner wrote:
> Ph. Marek wrote:
> >> However, during testing I noticed that a symlink's modification time is
> >> stored but not restored on checkout,
> >
> > Symlinks have no mtime AFAIK. If you try to change a symlink you change
> > the file/directory it's pointing to.
>
> Mh, ok. As there's lstat I thought there would also be some kind of
> "opposite" function, but I'm no expert of the POSIX APIs and am probably
> wrong...
No, not AFAIK.

> >> and that directories don't get their
> >> property values set, even if manually setting their "magic" properties:
> > So you set the property. Did you commit and *then* check for a new value?
> Yes, the propget was on a fresh checkout.
>
> In the repository it looks like this:
>
> Properties on 'file:///home/gunter/misc/make/tmp/metatest/secdir':
> svn:text-time : mt
> svn:unix-mode : 0700
> svn:owner : 1000 gunter
> svn:group : 1000 gunter
But the mode, owner, group etc. are set correctly ...
Why not the time? Is there a special character in the property name?

> For comparison, a test file I added looks good:
>
> Properties on 'file:///home/gunter/misc/make/tmp/metatest/testfile':
> svn:text-time : 2005-12-20T12:01:09.000000Z
> svn:executable : *
> svn:unix-mode : 0755
> svn:owner : 1000 gunter
> svn:group : 1000 gunter
>
> Both were committed at the same time and after recursively setting the
> properties.
Wait, secdir is a directory, no? I don't store the modification time for
directories, because that is changed with every file create/delete and so
doesn't say much.

> Thanks a lot for your help! :-)
You're welcome.

> The meta-data extensions really look very promising.
Thank you.

Regards,

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Dec 25 05:28:02 2005

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