[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

4 bugs in svn diff (IssueZilla gives me Internal Server Error)

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2002-04-28 03:45:38 CEST

I'm posting these bugs here because IssueZilla appears to be broken
ATM.

Both client and server are at revision 1814. I have neon 0.19.4, and
apache/apr/apr-util HEAD. Server platform is NetBSD/i386 1.5.2,
client platform is NetBSD/i386 1.5ZC (current).

#################################################################
svn diff URL WCPATH where both are dictories doesn't work

% svn diff http://svn.pretzelnet.org/repo/3rdparty/gnuserv/gnuserv-3.12.4 gnuserv | head
epg's password:
Index: gnuserv/gnuserv.h
===================================================================
--- gnuserv/gnuserv.h
+++ tmp.57628.00003 Sat Apr 27 20:31:10 2002
@@ -0,0 +1,35 @@
+<html><head><title>/trunk/gnuserv</title></head>
+<body>
+ <h2>/trunk/gnuserv</h2>
+ <ul>
+ <li>..</li>

[snip]

#################################################################
svn diff URL WCPATH where both are files gives bogus output

It lists every line in URL as being removed and every line in WCPATH
as being added, even though they only differ by one line. I suspect
this might have something to do with eol translation even though
i have not enabled it anywhere.

#################################################################
svn diff asks for password every time

Everytime i run svn diff URL WCPATH (where URL is http without auth
and WCPATH was checked out over https with auth), it asks me for
the password even though it is already cached in .svn.

#################################################################
svn diff dumps core when listing property changes

#0 0x80a3d0a in find_entry (ht=0x0, key=0x810e4d0, klen=12, val=0x0)
    at apr_hash.c:276
276 for (hep = &ht->array[hash & ht->max], he = *hep;
(gdb) bt
#0 0x80a3d0a in find_entry (ht=0x0, key=0x810e4d0, klen=12, val=0x0)
    at apr_hash.c:276
#1 0x80a3ea3 in apr_hash_get (ht=0x0, key=0x810e4d0, klen=-1)
    at apr_hash.c:338
#2 0x8058000 in display_prop_diffs (propchanges=0x812e120,
    original_props=0x0, path=0x810e130 "gnuserv.c", file=0x80d5258,
    pool=0x812e010) at subversion/libsvn_client/diff.c:66
#3 0x80582e8 in diff_props_changed (path=0x810e130 "gnuserv.c",
    propchanges=0x810e140, original_props=0x0, diff_baton=0xbfbfd370)
    at subversion/libsvn_client/diff.c:212
#4 0x805c102 in close_file (file_baton=0x810e100)
    at subversion/libsvn_client/repos_diff.c:592
#5 0x8075590 in wrap_close_file (file_baton=0x810e0e0)
    at subversion/libsvn_delta/default_editor.c:495
#6 0x807efe6 in end_element (userdata=0x8127808, elm=0x80c0f68,
    cdata=0x80d9a00 "\n") at subversion/libsvn_ra_dav/fetch.c:1505
#7 0x80b44d5 in end_element (userdata=0x8108000, name=0x810b07e "S:add-file")
    at ne_xml.c:555
#8 0x808e5eb in doContent (parser=0x80f2c00, startTagLevel=0, enc=0x80c7840,
    s=0x80ef9f8 "</S:add-file>\n<S:prop></S:prop>\n</S:replace-directory>\n</S:update-report>\n", end=0x80efa42 "", nextPtr=0x80f2c18) at xmlparse.c:1744
#9 0x808dc2d in contentProcessor (parser=0x80f2c00,
    start=0x80ef827 "<S:update-report xmlns:S=\"svn:\" xmlns:D=\"DAV:\">\n<S:target-revision rev=\"55\"/>\n<S:replace-directory rev=\"55\">\n<D:checked-in><D:hr---Type <return> to continue, or q <return> to quit---
ef>/repo/$svn/ver/139.2/trunk/gnuserv/gnuserv.c</D:href></D:checked-in>\n"...,
    end=0x80efa42 "", endPtr=0x80f2c18) at xmlparse.c:1354
#10 0x808ff88 in doProlog (parser=0x80f2c00, enc=0x80c7840,
    s=0x80ef827 "<S:update-report xmlns:S=\"svn:\" xmlns:D=\"DAV:\">\n<S:target-revision rev=\"55\"/>\n<S:replace-directory rev=\"55\">\n<D:checked-in><D:href>/repo/$svn/ver/139.2/trunk/gnuserv/gnuserv.c</D:href></D:checked-in>\n"...,
    end=0x80efa42 "", tok=29,
    next=0x80ef827 "<S:update-report xmlns:S=\"svn:\" xmlns:D=\"DAV:\">\n<S:target-revision rev=\"55\"/>\n<S:replace-directory rev=\"55\">\n<D:checked-in><D:href>/repo/$svn/ver/139.2/trunk/gnuserv/gnuserv.c</D:href></D:checked-in>\n"...,
    nextPtr=0x80f2c18) at xmlparse.c:2692
#11 0x808fa9c in prologProcessor (parser=0x80f2c00,
    s=0x80ef800 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<S:update-report xmlns:S=\"svn:\" xmlns:D=\"DAV:\">\n<S:target-revision rev=\"55\"/>\n<S:replace-directory rev=\"55\">\n<D:checked-in><D:href>/repo/$svn/ver/139.2/trunk/gnu"...,
    end=0x80efa42 "", nextPtr=0x80f2c18) at xmlparse.c:2528
#12 0x808fa59 in prologInitProcessor (parser=0x80f2c00,
    s=0x80ef800 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<S:update-report xmlns:S=\"svn:\" xmlns:D=\"DAV:\">\n<S:target-revision rev=\"55\"/>\n<S:replace-directory rev=\"55\">\n<D:checked-in><D:href>/repo/$svn/ver/139.2/trunk/gnu"...,
    end=0x80efa42 "", nextPtr=0x80f2c18) at xmlparse.c:2517
#13 0x808d8be in XML_ParseBuffer (parser=0x80f2c00, len=578, isFinal=0)
    at xmlparse.c:1155
#14 0x808d879 in XML_Parse (parser=0x80f2c00,
---Type <return> to continue, or q <return> to quit---
    s=0xbfbfce24 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<S:update-report xmlns:S=\"svn:\" xmlns:D=\"DAV:\">\n<S:target-revision rev=\"55\"/>\n<S:replace-directory rev=\"55\">\n<D:checked-in><D:href>/repo/$svn/ver/139.2/trunk/gnu"..., len=578, isFinal=0) at xmlparse.c:1145
#15 0x80b4b40 in ne_xml_parse (p=0x8108000,
    block=0xbfbfce24 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<S:update-report xmlns:S=\"svn:\" xmlns:D=\"DAV:\">\n<S:target-revision rev=\"55\"/>\n<S:replace-directory rev=\"55\">\n<D:checked-in><D:href>/repo/$svn/ver/139.2/trunk/gnu"..., len=578) at ne_xml.c:786
#16 0x80b4a8d in ne_xml_parse_v (userdata=0x8108000,
    block=0xbfbfce24 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<S:update-report xmlns:S=\"svn:\" xmlns:D=\"DAV:\">\n<S:target-revision rev=\"55\"/>\n<S:replace-directory rev=\"55\">\n<D:checked-in><D:href>/repo/$svn/ver/139.2/trunk/gnu"..., len=578) at ne_xml.c:761
#17 0x80acb11 in ne_read_response_block (req=0x80d9200,
    buffer=0xbfbfce24 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<S:update-report xmlns:S=\"svn:\" xmlns:D=\"DAV:\">\n<S:target-revision rev=\"55\"/>\n<S:replace-directory rev=\"55\">\n<D:checked-in><D:href>/repo/$svn/ver/139.2/trunk/gnu"..., buflen=1024) at ne_request.c:745
#18 0x80ad98c in ne_request_dispatch (req=0x80d9200) at ne_request.c:1286
#19 0x8081bd7 in svn_ra_dav__parsed_request (ras=0x8127510,
    method=0x80c1669 "REPORT",
    url=0x80db2c0 "/repo/3rdparty/gnuserv/gnuserv-3.12.4", body=0x0, fd=3,
    elements=0x80c0ef8, validate_cb=0x807e140 <validate_element>,
---Type <return> to continue, or q <return> to quit---
    startelm_cb=0x807e3f4 <start_element>, endelm_cb=0x807edf8 <end_element>,
    baton=0x8127808, pool=0x80d5010) at subversion/libsvn_ra_dav/util.c:265
#20 0x807f783 in reporter_finish_report (report_baton=0x8127808)
    at subversion/libsvn_ra_dav/fetch.c:1716
#21 0x805a200 in do_diff (options=0x80d5228, auth_baton=0x80d5210,
    path1=0x80d5358, revision1=0xbfbfd4d4, path2=0x80d5380,
    revision2=0xbfbfd4e0, recurse=1, callbacks=0x80bc628,
    callback_baton=0xbfbfd370, pool=0x80d5010)
    at subversion/libsvn_client/diff.c:1076
#22 0x805a334 in svn_client_diff (options=0x80d5228, auth_baton=0x80d5210,
    path1=0x80d5358, revision1=0xbfbfd4d4, path2=0x80d5380,
    revision2=0xbfbfd4e0, recurse=1, outfile=0x80d5258, errfile=0x80d5298,
    pool=0x80d5010) at subversion/libsvn_client/diff.c:1164
#23 0x804bb7a in svn_cl__diff (os=0x80d5128, opt_state=0xbfbfd4d4,
    pool=0x80d5010) at subversion/clients/cmdline/diff-cmd.c:99
#24 0x804e013 in main (argc=4, argv=0xbfbfd590)
    at subversion/clients/cmdline/main.c:1104
#25 0x804ae1d in ___start ()

-- 
Eric Gillespie <*> epg@pretzelnet.org
Conformity is a sin.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 28 03:46:42 2002

This is an archived mail posted to the Subversion Dev mailing list.