svn mergeinfo updates needed in 1.5 book

Peter Wemm peter at wemm.org
Mon Apr 21 19:13:50 CDT 2008


Chapter 4, "Basic merging", "Mergeinfo and Previews" has incorrect
information in it.

For example, the output of the 'svn mergeinfo .' command isn't
correct.  The tests I did suggest that --from-source isn't a valid
switch anymore.  It appears you always have to specify the source, not
"." as in the examples.  Also, you have to specify --show-revs with
either "merged" or "eligible", both aren't just shown to you
automatically like the examples suggest.

Or.. I'm doing it wrong.  Which is also a very good possibility.

For example, the book says:
$ svn mergeinfo .
Path: .
  Source path: /trunk
    Merged ranges: r341:390
    Eligible ranges: r391:395

but, if I try this on the svn-1.5 repo, I see:

peter at svn[11:56pm]/s/peter/svn-1.5-101> svn mergeinfo .
subversion/svn/main.c:2035: (apr_err=205000)
svn: Try 'svn help' for more info
subversion/svn/mergeinfo-cmd.c:80: (apr_err=205000)
svn: Path '' is not a URL


The actual commands that work:
peter at svn[11:57pm]/s/peter/svn-1.5-103> svn mergeinfo
http://svn.collab.net/repos/svn/trunk/
r29085
r29091
...

peter at svn[11:58pm]/s/peter/svn-1.5-105> svn mergeinfo --show-revs
merged http://svn.collab.net/repos/svn/trunk/
r29085
r29091
r29094
r29098
...
peter at svn[11:58pm]/s/peter/svn-1.5-106> svn mergeinfo --show-revs
eligible http://svn.collab.net/repos/svn/trunk/
r29083
r29090
r29092
r29093
...

And the example using --from-source:

$ svn mergeinfo --from-source \
http://svn.example.com/repos/calc/branches/other-branch  .
Path: .
  Source path: /branches/other-branch
    Merged ranges:
    Eligible ranges: r360:364

.. doesn't work.  there isn't a --from-source switch according to 'svn
help mergeinfo'.

May I humbly ask that somebody could do a sweep over this stuff who
knows what is actually going on here..

Oops.  I just discovered that issue #109 is about this.  Sorry for the
dup.  Please consider this both as begging and as a bump request for
#109.
-- 
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5
"If Java had true garbage collection, most programs would delete
themselves upon execution." -- Robert Sewell




More information about the svnbook-dev mailing list