You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by mark benedetto king <mb...@lowlatency.com> on 2003/08/19 19:41:54 UTC

Strangeness with svn log

Using 0.26.0, I see:

$ svn log http://svn.collab.net/repos/svn/branches/neon-0.24
subversion/libsvn_ra_dav/util.c:597: (apr_err=175007)
svn: HTTP Path Not Found
svn: REPORT request failed on '/repos/svn/!svn/bc/1/branches/neon-0.24'
subversion/libsvn_ra_dav/util.c:568: (apr_err=175007)
svn: '/repos/svn/!svn/bc/1/branches/neon-0.24' path not found

svn ls works fine.

Using 0.27.0, everything works.

Good thing Phillip reverted our version interop guarantee. :-)

--ben



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Strangeness with svn log

Posted by Philip Martin <ph...@codematters.co.uk>.
cmpilato@collab.net writes:

> Philip Martin <ph...@codematters.co.uk> writes:
>> 
>> So 'svn log -rREV' doesn't work if REV occurred in the copyfrom
>> history.  Is that the way 'svn log -rREV' is supposed to work?  It's
>> not the most convenient way to operate.
>
> log -rREV doesn't work if the path didn't exist at REV.  This is
> consistent with, oh, probably every other Subversion subcommand.  (Are
> you just noticing this for the first time, Philip?)

No I'm not, it's just that I get confused when I have to remember
which things work and which things don't :-)

> It's also not a trivial fix.  I think it requires a major UI change.

Yes, I've worked that out now.  I raised issue 1482 on the original
problem, but I've since added to it with more thoughts that are
essentially the same as the problem you illustrated.  I guess the
issue could be closed on the grounds that "that is the way Subversion
works", or we could leave it open as a pointer to a future
enhancement.

-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Strangeness with svn log

Posted by cm...@collab.net.
Philip Martin <ph...@codematters.co.uk> writes:

> Hmm, I've just discovered that HEAD has some problems
> 
> $ svn log -r6458 http://svn.collab.net/repos/svn/tags/0.26
> ../svn/subversion/libsvn_ra_dav/util.c:597: (apr_err=175007)
> svn: HTTP Path Not Found
> svn: REPORT request failed on '/repos/svn/!svn/bc/6458/tags/0.26'
> ../svn/subversion/libsvn_ra_dav/util.c:568: (apr_err=175007)
> svn: '/repos/svn/!svn/bc/6458/tags/0.26' path not found
> 
> while
> 
> $ svn log http://svn.collab.net/repos/svn/tags/0.26 | grep 6458
> rev 6458:  djh | 2003-07-12 16:20:40 +0100 (Sat, 12 Jul 2003) | 8 lines
> 
> So 'svn log -rREV' doesn't work if REV occurred in the copyfrom
> history.  Is that the way 'svn log -rREV' is supposed to work?  It's
> not the most convenient way to operate.

log -rREV doesn't work if the path didn't exist at REV.  This is
consistent with, oh, probably every other Subversion subcommand.  (Are
you just noticing this for the first time, Philip?)

It's also not a trivial fix.  I think it requires a major UI change.
Ben and Karl talked about this problem in the office last week (I
think it was).  Essentially, to accomplish some of the things people
are wanting (like this log behavior, for example), users are required
to provided two different revision-y things for every path: a locator
("peg") revision (which identifies a line of history), and an
operative revision range (a revision or set of revisions on which to
perform the operation).

Consider what would happen in this scenario:

revision 1:  make trunk, tags, branches
revision 2:  import the subversion tree into trunk
revision 3:  copy /trunk/libsvn_fs /branches/my-branch
...
revision 6:  del /branches/my-branch
revision 7:  copy /trunk/libsvn_wc /branches/my-branch
...

Now, if a user sez 'svn log -r 2 http://url/to/branches/my-branch',
which line of history should they get?  The line that extends back
through libsvn_fs or the one through libsvn_wc?

To allow the full range of motion, you'd need something like:

    'svn log -r 2 http://url/to/branches/my-branch@HEAD'
    'svn log -r 2 http://url/to/branches/my-branch@7'
    'svn log -r 2 http://url/to/branches/my-branch@3'

where the url@REV *must* exist as a real filesystem location, and the
-r is the revision range on which to operate for that line of history.

Today, we overload -r (and the @-syntax, for that matter) to be a
combination of both the peg revision and the revision range.  And, as
folks are finding out, it can be a little limiting/annoying.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Strangeness with svn log

Posted by Philip Martin <ph...@codematters.co.uk>.
mark benedetto king <mb...@lowlatency.com> writes:

> Using 0.26.0, I see:
>
> $ svn log http://svn.collab.net/repos/svn/branches/neon-0.24
> subversion/libsvn_ra_dav/util.c:597: (apr_err=175007)
> svn: HTTP Path Not Found
> svn: REPORT request failed on '/repos/svn/!svn/bc/1/branches/neon-0.24'
> subversion/libsvn_ra_dav/util.c:568: (apr_err=175007)
> svn: '/repos/svn/!svn/bc/1/branches/neon-0.24' path not found
>
> svn ls works fine.
>
> Using 0.27.0, everything works.

Hmm, I've just discovered that HEAD has some problems

$ svn log -r6458 http://svn.collab.net/repos/svn/tags/0.26
../svn/subversion/libsvn_ra_dav/util.c:597: (apr_err=175007)
svn: HTTP Path Not Found
svn: REPORT request failed on '/repos/svn/!svn/bc/6458/tags/0.26'
../svn/subversion/libsvn_ra_dav/util.c:568: (apr_err=175007)
svn: '/repos/svn/!svn/bc/6458/tags/0.26' path not found

while

$ svn log http://svn.collab.net/repos/svn/tags/0.26 | grep 6458
rev 6458:  djh | 2003-07-12 16:20:40 +0100 (Sat, 12 Jul 2003) | 8 lines

So 'svn log -rREV' doesn't work if REV occurred in the copyfrom
history.  Is that the way 'svn log -rREV' is supposed to work?  It's
not the most convenient way to operate.

-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Strangeness with svn log

Posted by cm...@collab.net.
kfogel@collab.net writes:

> Philip Martin <ph...@codematters.co.uk> writes:
> > > $ svn log http://svn.collab.net/repos/svn/branches/neon-0.24
> > > subversion/libsvn_ra_dav/util.c:597: (apr_err=175007)
> > > svn: HTTP Path Not Found
> > > svn: REPORT request failed on '/repos/svn/!svn/bc/1/branches/neon-0.24'
> > > subversion/libsvn_ra_dav/util.c:568: (apr_err=175007)
> > > svn: '/repos/svn/!svn/bc/1/branches/neon-0.24' path not found
> > 
> > I recognise that error message... yes, here it is
> > 
> > http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=42176
> > 
> > The odd thing is that it appears to be r6614, which is post 0.26.
> 
> Could there have been some strange incompatibility between client and
> server?  Mike upgraded svn.collab.net to 0.27 very recently.

6614 was reverted in 6631 as Badness, so if you're using code between
those two revisions, you'll see this bug.  In 6642, I made a
client-side fix for an ra-dav inconsistency which would have had it
looking for things in this case in revision 1.  Now it looks in the
larger of the X:Y values (where the default X:Y for a URL target is
HEAD:1, and for a working copy path, BASE:1).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Strangeness with svn log

Posted by kf...@collab.net.
Philip Martin <ph...@codematters.co.uk> writes:
> > $ svn log http://svn.collab.net/repos/svn/branches/neon-0.24
> > subversion/libsvn_ra_dav/util.c:597: (apr_err=175007)
> > svn: HTTP Path Not Found
> > svn: REPORT request failed on '/repos/svn/!svn/bc/1/branches/neon-0.24'
> > subversion/libsvn_ra_dav/util.c:568: (apr_err=175007)
> > svn: '/repos/svn/!svn/bc/1/branches/neon-0.24' path not found
> 
> I recognise that error message... yes, here it is
> 
> http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=42176
> 
> The odd thing is that it appears to be r6614, which is post 0.26.

Could there have been some strange incompatibility between client and
server?  Mike upgraded svn.collab.net to 0.27 very recently.

> > Using 0.27.0, everything works.

Yup.  I just tried the command with ~6798 of svn, and no problems.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Strangeness with svn log

Posted by mark benedetto king <mb...@lowlatency.com>.
On Tue, Aug 19, 2003 at 04:46:23PM -0400, mark benedetto king wrote:
> On Tue, Aug 19, 2003 at 09:11:47PM +0100, Philip Martin wrote:
> > 
> > The odd thing is that it appears to be r6614, which is post 0.26.
> > 
> 
> I'll back-update, rebuild, and try to reproduce.
> 
> --ben
> 

The actual 0.26 release works fine against svn.collab.net.

--ben


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Strangeness with svn log

Posted by mark benedetto king <mb...@lowlatency.com>.
On Tue, Aug 19, 2003 at 09:11:47PM +0100, Philip Martin wrote:
> 
> The odd thing is that it appears to be r6614, which is post 0.26.
> 

I'll back-update, rebuild, and try to reproduce.

--ben



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Strangeness with svn log

Posted by Philip Martin <ph...@codematters.co.uk>.
mark benedetto king <mb...@lowlatency.com> writes:

> Using 0.26.0, I see:
>
> $ svn log http://svn.collab.net/repos/svn/branches/neon-0.24
> subversion/libsvn_ra_dav/util.c:597: (apr_err=175007)
> svn: HTTP Path Not Found
> svn: REPORT request failed on '/repos/svn/!svn/bc/1/branches/neon-0.24'
> subversion/libsvn_ra_dav/util.c:568: (apr_err=175007)
> svn: '/repos/svn/!svn/bc/1/branches/neon-0.24' path not found

I recognise that error message... yes, here it is

http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=42176

The odd thing is that it appears to be r6614, which is post 0.26.

> svn ls works fine.
>
> Using 0.27.0, everything works.

-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org