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

How to Preserve Directory Commit Time with SVN Export

From: Evan J <maps.this.address_at_gmail.com>
Date: Fri, 24 Jun 2016 18:25:46 -0400

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?
Received on 2016-06-25 00:26:02 CEST

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.