Symfony World blog is not maintained anymore. Check new sys.exit() programming blog.

svn log user

SVN log tool does not provide any option to filter output by the user. Using the --username option won't do the job, unfortunately.

But you may filter SVN changes commited by a chosen user using the following:

svn log | sed -n '/| username |/,/-----$/ p'
Basing on that, you may create a bash script, called svn-log-user for example, with the following content:
#!/bin/bash
svn log | sed -n "/| $1 |/,/-----$/ p"
Then, put it inside the /usr/local/bin directory or anywhere that is accessible from the path, run:
echo $PATH
to check which directories are in the path. Then, call it with:
./svn-log-user username

2 comments:

  1. A nie lepiej grep?

    ReplyDelete
    Replies
    1. Być może lepiej - proponuję zamieścić pełne rozwiązanie.

      Delete