How to get a list of all Subversion commit author usernames?

前端 未结 8 1548
无人共我
无人共我 2021-01-29 20:51

I\'m looking for an efficient way to get the list of unique commit authors for an SVN repository as a whole, or for a given resource path. I haven\'t been able to find an SVN co

8条回答
  •  一向
    一向 (楼主)
    2021-01-29 20:59

    A solution for windows 10.

    1. create a batch file printAllAuthor.bat
    @echo off
    for /f "tokens=3" %%a in ('svn log --quiet ^|findstr /r "^r"') do echo %%a
    @echo on
    
    1. run bat file with sort command
    printAllAuthor.bat | sort /unique >author.txt
    

    PS:

    • The step 2 need run the batch file with right path. either set path in %PATH% or use the right OS path format.
    • The step 2 can be made into a batch file as well according to your needs.

提交回复
热议问题