How do I see the last 10 commits in reverse-chronological order with 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.
To see them in chronological order:
svn log -r1:HEAD
A shortcut -l
exists for --limit
# show last 10 logs
svn log -l 10
svn log --limit 10
or
svn log -l 10
Further googling uncovered the answer. svn log
lists in reverse-chronological order by default.