Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find the revisions made by a specific Subversion user?

Tags:

svn

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.

like image 350
nabucosound Avatar asked Jun 04 '10 16:06

nabucosound


People also ask

How do I find specific revision in svn?

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.

How do I find previous versions in svn?

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.

Where is svn history stored?

They are stored in the svn:log property. You can add the --revprop flag to the various property commands to view & edit this property.

How do you find the difference between two svn revisions?

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.

What is Subversion revision number?

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.


1 Answers

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
like image 96
ire_and_curses Avatar answered Oct 26 '22 22:10

ire_and_curses