Subversion: howto find all revisions that are not merged to trunk?
Solution 1:
You can do this super easily if you're using a relatively newish version of Subversion (1.5 or higher, I think) with the mergeinfo
sub-command.
svn mergeinfo --show-revs eligible svn://repo/branches/your-branch-name svn://repo/trunk
This will show you all the revisions that are eligible to be merged to the trunk from the branch "your-branch-name".
Source: http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.mergeinfo.html
Solution 2:
Short answer: I don't think so.
Long answer: I ended up writing a python script to answer this question. Whenever developers merge a changeset they're required to put "merged rXXX" in the log message. (This from before svn:mergeinfo existed) The script parses all live svn branches + trunk and recursively scans all "merged" links, outputting a per-developer list of changes they haven't merged.
[update] The answer from @tmont is better now that everyone has a svn version that supports svn mergeinfo --show-revs eligible
and svn merge --record-only
for those times when you want to record the logical fix only.