How do you see recent SVN log entries?

后端 未结 9 2254
生来不讨喜
生来不讨喜 2020-12-04 04:55

Typing svn log spits out an incredibly long, useless list on a command line. I have no idea why that is the default. If I wanted to read (or even could read) 30

9条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 05:59

    But svn log is still in reverse order, i.e. most recent entries are output first, scrolling off the top of my terminal and gone. I really want to see the last entries, i.e. the sorting order must be chronological. The only command that does this seems to be svn log -r 1:HEAD but that takes much too long on a repository with some 10000 entries. I've come up this this:

    Display the last 10 subversion entries in chronological order:

    svn log -r $(svn log -l 10 | grep '^r[0-9]* ' | tail -1 | cut -f1 -d" "):HEAD
    

提交回复
热议问题