Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to look at svn commit messages, but because the order is reversed I don't know which revision is last nor which revision I want to look at.

My question is how do you show the log from the last revision to say 50 revisions before that? There are certainly ways of figuring out the last revision; I'm just looking for a single command that makes it easy.

Thanks

share|improve this question
    
you do know which is last: its the first one in your list - as you generally want a history stretching back in time. –  gbjbaanb Aug 3 '10 at 17:55

2 Answers 2

up vote 3 down vote accepted

Use svn log

Show revisions 5-20, starting with 5:

$ svn log -r 5:20 file.txt

Reverse the order:

$ svn log -r 20:5 file.txt

You can also show by date -- show revisions for Jan - Mar 2010

$ svn log -r {20100101}:{20100331} file.txt

Read more in the docs for svn log and more specifics about specifying revisions for log, diff, co, etc

share|improve this answer
    
head was what I was looking for -- something like svn log -r 1:head. Thanks for the link –  Audie Aug 3 '10 at 17:57

On a branch where you don't want the entire log history you can use:

svn log -r1:HEAD --stop-on-copy <svn path>

This will give you the first commit on that branch at the top of your results and you can do a --limit 1 to just return that log message.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.