How do I see the last 10 commits in reverse-chronological order with SVN?

SvnCommit

Svn Problem Overview


Using the SVN command line, is there a way to show the last X number of commits along with commit messages, in reverse-chronological order (newest commit first)?

Svn Solutions


Solution 1 - Svn

svn log --limit 10

or

svn log -l 10

Further googling uncovered the answer. svn log lists in reverse-chronological order by default.

Solution 2 - Svn

To clarify the previous answers - note that svn log by default only shows the commits up to the revision of your working copy (latest svn update, run svn info to see). So yes, if it's OK for you to download all commits first, this combination will work:

svn update

svn log -l 10

However, I'm mostly interested in showing the ALL latest commits without first updating my working copy, so I mostly compare my log to HEAD falling:

svn log -l 10 -r HEAD:1

It makes a huge difference to me.

Solution 3 - Svn

A shortcut -l exists for --limit

# show last 10 logs
svn log -l 10

Solution 4 - Svn

To see them in chronological order:

svn log -r1:HEAD

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLokesh DhakarView Question on Stackoverflow
Solution 1 - SvnLokesh DhakarView Answer on Stackoverflow
Solution 2 - SvnJens X AugustssonView Answer on Stackoverflow
Solution 3 - SvnsvassrView Answer on Stackoverflow
Solution 4 - Svnyegor256View Answer on Stackoverflow