tags:

views:

299

answers:

3

When working with a subdirectory in a repository, how to find the revision when that specific directory has been added to the repository? By using "svn info http://.." I can find out when it was modified for the last time ("Last Changed Rev"), but I also need to find out the revision number of the commit when that directory (or file) was added for the first time (it's "first" revision).

I have been searching for that at the "SVN book", googling, but, obviously, I got no results.

+1  A: 

The last entry of

svn log http://...
Mark
A: 

Not sure what the command line method is. I use Tortoise on windows to do most of my SVN navigating. If you have that tool, just right click on the folder and it is tortoise SVN/Show Log.

Matt Wrock
+7  A: 

You could use svn log, with a reverse revision range:

svn log -r 1:HEAD --limit 1 <REPO_URL>
CMS
+1 ... nice solution :-) Going to store this one away.
Chris J
+1 for `--limit 1`
Michael Hackner
Haha, it caused me so much trouble and I didn't figure out. Thanks!
Oliver
Don't forget to accept the answer if you are satisfied with it :)
David Kuridža
Just did it. I'm new guy at the hood, I am still getting familiar :)
Oliver