How do you see recent SVN log entries?

后端 未结 9 2238
生来不讨喜
生来不讨喜 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:45

    As you've already noticed svn log command ran without any arguments shows all log messages that relate to the URL you specify or to the working copy folder where you run the command.

    You can always refine/limit the svn log results:

    • svn log --limit NUM will show only the first NUM of revisions,
    • svn log --revision REV1(:REV2) will show the log message for REV1 revision or for REV1 -- REV2 range,
    • svn log --search will show revisions that match the search pattern you specify (the command is available in Subversion 1.8 and newer client). You can search by
      • revision's author (i.e. committers username),
      • date when the revision was committed,
      • revision comment text (log message),
      • list of paths changed in revision.

提交回复
热议问题