This section is from the "Version Control with Subversion" book, by Ben Collins-Sussman, Brian W. Fitzpatrick and C. Michael Pilato. Also available from Amazon: Version Control with Subversion.
svn mergeinfo — Query merge-related information. See the section called “Mergeinfo and Previews” for details.