You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Evan J <ma...@gmail.com> on 2016/06/24 22:25:46 UTC

How to Preserve Directory Commit Time with SVN Export

I am trying retrieve *only* the artifacts that have been modified/added in
Subversion repository from revision x to revision z. For that, after
obtaining a list of such files/folders through svn diff --summarize, I run svn
export in my script to retrieve the individual files/folders.

However, svn export doesn't seem to preserve the commit-time timestamp of
directories (it does for files though). As a matter of fact, when the
folder structure is exported, the timestamp of folders are the current
system datetime (while the actual files contain the timestamp when they
were last committed to the repository). I even tried to run svn export with
the following command option, but the results are still the same:

svn export http://svn/repo/url/path/to/folder
C:\temp\test\path\to\folder --depth empty
--config-option=config:miscellany:use-commit-times=yes

Apparently, use-commit-times is already set for svn export to yes (and
http://svnbook.red-bean.com/en/1.7/svn.advanced.confarea.html is merely for
other svn commands, i.e. checkout, update, switch, etc.).

Is there a way to export (or retrieve) a delta of the files/folder between
two revisions while preserving the commit-time timestamps for folders?