1

When I import files into a repository (svn import), they get new timestamps. So when I checkout these files into a working copy, they have those new "last modification date". I would like to preserve the original files' timestamps. Is it possible with SVN 1.6.x?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Dawid Ohia
  • 16,129
  • 24
  • 81
  • 95
  • 2
    @JasonS that's a slightly different question. In that case, it's the checking time stamp they want, not the file's creation/modification date – BIBD Jul 29 '15 at 16:41

2 Answers2

2

You can set the svn:date revision property to simulate any commit time. See SVN commit with old date/time and Change the timestamp of an SVN revision.

Community
  • 1
  • 1
Wim Coenen
  • 66,094
  • 13
  • 157
  • 251
0

There is nothing in the default Subversion install to record the file's creation/modification dates. You may be able to add a custom property to record this if you wanted to go to that effort.

The next best option is to use the "set the file dates to the last commit time" option that others have linked to. That'll get you the commit time which (in an ideal world) shouldn't be too long after the file was last updated.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
BIBD
  • 15,107
  • 25
  • 85
  • 137