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

Re: When was somethign originally added to the repo?

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: 2006-11-15 22:29:56 CET

On 11/15/2006 3:57 PM, Jeff Barrett wrote:
> I think this is a relatively easy thing to answer, but it didn't seem
> obvious to me as I was fooling around with "svn log" and "svn info".
>
> How can I go about finding out when a particular file or directory was
> _originally added_ to the repository? I'm assuming if I can figure out
> the revision I've got my answer, but I haven't been able to figure that
> out easily.
>
> For example, I'd like to know when the
> http://svn.collab.net/repos/svn/branches/1.4.x/ branch was originally
> created. The only solution I can see is to do an svn log command on the
> entire branch and wait until the original entry is listed, but that
> takes a loooooong time :)
>
> Am I missing something obvious?

Something like this should do it:

svn log --stop-on-copy -r 1:HEAD | less

or

svn log --stop-on-copy -r 1:HEAD <URL> | less

This starts with the rev that created the current directory (specify it
by URL if you don't have it checked out), and passes the results through
less, so you'll only get a single page listed.

Duncan Murdoch

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 15 22:36:09 2006

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.