# How to preserve date with svn check-out?

**URL:** https://www.finalbuilder.com/forums/t/how-to-preserve-date-with-svn-check-out/1580
**Category:** Discussion
**Created:** [August 31, 2010, 5:37am UTC](https://www.finalbuilder.com/forums/t/how-to-preserve-date-with-svn-check-out/1580 "2010-08-31T05:37:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 31, 2010, 5:37am UTC](https://www.finalbuilder.com/forums/t/how-to-preserve-date-with-svn-check-out/1580/1 "2010-08-31T05:37:20Z")

</div>

How can we preserve the svn date of a file when we check it out during a build?

Is there a configuration file or command line switch?

TIA

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 1, 2010, 12:31pm UTC](https://www.finalbuilder.com/forums/t/how-to-preserve-date-with-svn-check-out/1580/2 "2010-09-01T12:31:30Z")

</div>

Hi Tom   
  
 As far as I can tell svn doesn’t provide any options for this :   
  
 [http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.checkout.html](http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.checkout.html)

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 1, 2010, 1:22am UTC](https://www.finalbuilder.com/forums/t/how-to-preserve-date-with-svn-check-out/1580/3 "2010-09-01T01:22:00Z")

</div>

I'm not familiar with svn. We use ssvn as our interface to it. And it somehow maintains the commit date of each file. I assumed that svn would handle that too.   
  
It's very hard for me to believe that the masses of developers who use svn are stuck with the local time-date stamp of a file being changed when a copy is made to the local drive...   
  
Hopefully, someone else here will have some additional information on this.

See this StackOverflow thread:&nbsp;[http://stackoverflow.com/questions/...subversion](http://stackoverflow.com/questions/2171939/how-can-i-keep-original-file-timestamp-on-subversion)  
  
Thanks for the response, Vincent.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 8, 2010, 3:18am UTC](https://www.finalbuilder.com/forums/t/how-to-preserve-date-with-svn-check-out/1580/4 "2010-09-08T03:18:21Z")

</div>

I'm told that adding the line   
  
use-commit-times=yes   
  
to the [miscellany] section of .subversion/config will set local files from a respository to their commit times.   
  
However, there are some 3rd party svn tools that ignore this flag (like Smart SVN, for example, which provides a different way of setting this flag.)   
  
I wanted to ask if anyone can confirm that FB will act on this flag in the config file rather than ignoring it?   
  
TIA

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 8, 2010, 10:20am UTC](https://www.finalbuilder.com/forums/t/how-to-preserve-date-with-svn-check-out/1580/5 "2010-09-08T10:20:20Z")

</div>

Hi Tom   
  
 FB uses svn.exe, so if svn.exe supports that flag then it should work from FB.
