Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-3937

'svn log' of nonexistent path pegged at existing rev succeeds over ra_serf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • trunk
    • 1.7.0
    • unknown
    • None

    Description

      Running 'svn log' on a nonexistent path pegged at an existing revision raises an
      error over every RA provider except serf.
      
      For example, given our basic greek tree:
      
        >svn log -q ^^/
        ------------------------------------------------------------------------
        r1 | jrandom | 2011-06-23 14:45:46 -0400 (Thu, 23 Jun 2011)
        ------------------------------------------------------------------------
      
      Log requests for paths, existent or otherwise, pegged at a nonexistent rev fail:
      
        >svn log ^^/A@2
        ..\..\..\subversion\svn\log-cmd.c:758: (apr_err=160006)
        ..\..\..\subversion\libsvn_client\log.c:622: (apr_err=160006)
        ..\..\..\subversion\libsvn_ra_serf\log.c:672: (apr_err=160006)
        ..\..\..\subversion\libsvn_ra_serf\util.c:681: (apr_err=160006)
        ..\..\..\subversion\libsvn_ra_serf\util.c:1789: (apr_err=160006)
        ..\..\..\subversion\libsvn_ra_serf\util.c:1789: (apr_err=160006)
        ..\..\..\subversion\libsvn_ra_serf\util.c:827: (apr_err=160006)
        svn: E160006: No such revision 2
      
        >svn log ^^/Z@2
        ..\..\..\subversion\svn\log-cmd.c:758: (apr_err=160006)
        ..\..\..\subversion\libsvn_client\log.c:622: (apr_err=160006)
        ..\..\..\subversion\libsvn_ra_serf\log.c:672: (apr_err=160006)
        ..\..\..\subversion\libsvn_ra_serf\util.c:681: (apr_err=160006)
        ..\..\..\subversion\libsvn_ra_serf\util.c:1789: (apr_err=160006)
        ..\..\..\subversion\libsvn_ra_serf\util.c:1789: (apr_err=160006)
        ..\..\..\subversion\libsvn_ra_serf\util.c:827: (apr_err=160006)
        svn: E160006: No such revision 2
      
      Nonexistent paths pegged at an existing revision fail over the other 3 RA
      providers result in an error, but over ra_serf the result is an empty log:
      
      ra_local:
      
        >svn log ^^/Z@1
        ..\..\..\subversion\svn\log-cmd.c:758: (apr_err=160013)
        ..\..\..\subversion\libsvn_client\log.c:622: (apr_err=160013)
        ..\..\..\subversion\libsvn_repos\log.c:1699: (apr_err=160013)
        ..\..\..\subversion\libsvn_repos\log.c:1254: (apr_err=160013)
        ..\..\..\subversion\libsvn_fs_fs\tree.c:2790: (apr_err=160013)
        ..\..\..\subversion\libsvn_fs_fs\tree.c:2790: (apr_err=160013)
        svn: E160013: File not found: revision 1, path '/Z'
      
      ra_neon:
      
        >svn log ^^/Z@1
        ..\..\..\subversion\svn\log-cmd.c:758: (apr_err=160013)
        ..\..\..\subversion\libsvn_client\log.c:622: (apr_err=160013)
        ..\..\..\subversion\libsvn_ra_neon\util.c:1323: (apr_err=160013)
        ..\..\..\subversion\libsvn_ra_neon\util.c:596: (apr_err=160013)
        svn: E160013: '/svn-test-work/repositories/log_tests-34/!svn/rvr/1/Z' path not
      found
      
      ra_svn:
      
        >svn log ^^/Z@1
        ..\..\..\subversion\svn\log-cmd.c:758: (apr_err=160013)
        ..\..\..\subversion\libsvn_client\log.c:622: (apr_err=160013)
        ..\..\..\subversion\libsvn_repos\log.c:1699: (apr_err=160013)
        svn: E160013: File not found: revision 1, path '/Z'
        ..\..\..\subversion\libsvn_repos\log.c:1254: (apr_err=160013)
        svn: E160013: File not found: revision 1, path '/Z'
        ..\..\..\subversion\libsvn_fs_fs\tree.c:2790: (apr_err=160013)
        svn: E160013: File not found: revision 1, path '/Z'
        ..\..\..\subversion\libsvn_fs_fs\tree.c:2790: (apr_err=160013)
        svn: E160013: File not found: revision 1, path '/Z'
      
      
      ra_serf:
      
        >svn log ^^/Z@1
        ------------------------------------------------------------------------
      
        >
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pburba Paul Burba
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: