I'm doing some analysis of a large subversion repository in preparation for some pruning. I'd like to be able to figure out when a directory node was created, NOT just when it was "Last changed". I can get the Last changed date with the following:
svn info -R --depth immediates http://<path-omitted>/branches/ | grep -E "Path|Last Changed Date"
I'd like to get the creation date for two reasons:
Thanks for your help! I can't seem to come up with the right search to figure this out.
To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.
Examples. You can see the log messages for all the paths that changed in your working copy by running svn log from the top: $ svn log ------------------------------------------------------------------------ r20 | harry | 2003-01-17 22:56:19 -0600 (Fri, 17 Jan 2003) | 1 line Tweak.
Checking out an older revision from SVN /my/local/path/>svn co -r {2007-10-01} http://svn.greenstone.org/greenstone3/trunk . Comparing versions: comparing current folder contents with contents of an older revision: /my/local/path>svn diff -r {2008-04-26} .
Look in the Subversion log to find when the directory was copied to the branches
or tags
directory.
svn log --stop-on-copy --quiet http://<path-omitted>/tags/<directory> | tail -2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With