Ph. Marek <email@example.com> wrote:
>> It's not clear to me whether "svn up -rN" should restore the modification
>> time of the files at that revision. If so, that would break a common
>> pattern such as:
>> I took some time to search the archive for previous discussions about
>> versioning. After some reading, the only argument that convinced me is
>> of importing external trees.
> And every other usage which does not involve make, eg. documents.
Ah right. I never used Subversion for other kind of data, so this is why I'm
biased towards source code repositories.
>> In my mind, it would be "svn import" *only* to
>> remeber the mtime of the files being imported (at least by default), so
>> that it can be restored later. I still fail to see what's good in having
>> "svn commit" records and stores the mtime of each and every file.
> That's why my patch only stores for files _with svn:text-time set_. All
> others are treated as before.
Thus, are you proposing this property not to be added by default (unless one
modifies its own Subversion configuration file)? What if I want mtime stored
only for imported trees? Will the flag work also for directories?
>> Off the
>> top of my head, you will also have to fight endless trouble with
>> DST, different time encoding in Windows and UNIX, and whatnot.
> If you take a look into the stored timestamps you'll see that they look
> i.e. are stored in a text-format, UTC. Resolution up to microseconds, all
> conversions are done by svn. Which trouble could there be?
I know there is a long-time bug with CVS and DST, but I don't remember the
details. Google brought up this link:
http://www.devguy.com/fp/cfgmgmt/cvs/#DST. I suggest the problem to be
investigated in detail so to find out if it can be avoided in SVN. There are
also other issues with the rouding of mtime on different filesystems (e.g.
when you store a file into a FAT-16 disk and you read the mtime back, it can
be modified by rounding). This can cause trouble too; eg. SVN might think
that the user modified the mtime of the file while it was just rounded by
Anyway the issue is moot if this feature is opt-in rather than opt-out by
default. Personally, I would turn it manually on only on import.
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Mon Nov 28 14:00:29 2005