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

Import / Adding Properties

From: <trlists_at_clayst.com>
Date: 2004-12-02 06:03:06 CET

I'm still stuck on setting timestamps on my files.

This time I tried rebuilding my repository, creating a directory of the
versioned files only, and importing from there with svn import. So far
so good, it did exactly what I'd expect.

Now, I would like to attach properties to these files which contain
their current timestamps. That way when I check them out I can
retreive those and touch the files.

However, I cannot set properties in the repository, only in a WC
(right?). But if I do a checkout that will set all the timestamps in
the new WC to the time of checkout, which loses exactly the data I
wanted to retain.

It appears I have to import from a dummy directory, check out a WC to
another directory, copy the files from the dummy directory over top of
the WC to get back the old timestamps, then do propsets to attach the
timestamps to the files, and do a commit to get the timestamps into the

Why can't I add properties directly to files in the repository?

Also, why is the dance with svn import / svn checkout necessary? Why
isn't there a way to create a WC during or just after the import
process, creating the admin information (.svn) but not touching the
files? To me this mirrors a perfectly normal use case, simply putting
an existing directory under version control.

I'm curious partly because I want to know if the things I'm trying to
do -- however normal they seem to me -- are somehow outside the realm
of what Subversion is designed for, or if they are just things no one
has asked for or no one has managed to put in yet.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 2 06:05:10 2004

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.