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