Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find the creation time/date stamp of a subversion directory node

Tags:

svn

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:

  1. I'd like to confirm the directories inside the directory named "tags" haven't been altered. The folks administering this repo don't appear to have made tags read-only.
  2. I'd like to know what branches are safe to remove.

Thanks for your help! I can't seem to come up with the right search to figure this out.

like image 232
Frank Avatar asked Oct 14 '10 17:10

Frank


People also ask

How to check history of a file in svn?

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.

How to check svn log?

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.

How do I find my svn revision number?

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} .


1 Answers

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
like image 72
Chin Huang Avatar answered Oct 17 '22 09:10

Chin Huang