How do I see the last 10 commits in reverse-chronological order with SVN?
SvnCommitSvn 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