Using the command line, I'd like to see all changesets made by a particular user. Is this possible? I've looked at the documentation for svn log
but can't see how to do this.
There are two options available to get informatioon about past revisions: svn log -r <rev number> <url> : the commit message of a specified revision and url. svn info -r <rev number> <url> : some technical information about a specified revision and url.
Use the revision log dialog Select the file or folder in which you need to revert the changes. If you want to revert all changes, this should be the top level folder. Select TortoiseSVN → Show Log to display a list of revisions. You may need to use Show All or Next 100 to show the revision(s) you are interested in.
They are stored in the svn:log property. You can add the --revprop flag to the various property commands to view & edit this property.
Use just svn diff to display local modifications in a working copy. Display the changes made to TARGET s as they are seen in REV between two revisions. TARGET s may be all working copy paths or all URL s.
As we described in the section called “Revisions”, revision numbers in Subversion are pretty straightforward—integers that keep getting larger as you commit more changes to your versioned data. Still, it doesn't take long before you can no longer remember exactly what happened in each and every revision.
I don't know of any way to do this using pure Subversion. But you can do it with sed
:
svn log | sed -n '/username/,/-----$/ p'
This finds each instance of the username, and then prints everything up to the dashed line which marks the end of a record in the log.
The search pattern is very flexible - you can easily modify it to search for other things. For example,
svn log | sed -n '/Dec 2009/,/-----$/ p'
Would return all commits made in December (by any author).
Edit: If you don't want the actual commit message, but just the summary metadata, then you can just use grep
, in an analogous way to William Leara's Windows answer:
svn log | grep username
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With