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

revert file externals at op-depth 0

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • ---
    • 1.7.x
    • libsvn_wc

    Description

      svnadmin create repo
      svn import -mm Makefile file://`pwd`/repo/f
      svn co file://`pwd`/repo wc
      svn mkdir wc/A
      svn ps svn:externals '^/f g' wc/A
      svn up wc
      
      sqlite3 wc/.svn/wc.db "select op_depth, local_relpath, presence, file_external
      from nodes"
      0|f|normal|
      1|A|normal|
      0||normal|
      0|A/g|normal|1
      
      See how A/g is at op-depth 0, is that how it's supposed to work?  Suppose this
      was a replace, A/g might already exist at op-depth 0.
      
      If I run "svn revert -R" on the working copy the the A row gets removed but the
      A/g row remains causing A to show up in status as 'X' even though the
      svn:externals property no longer exists:
      
      $ svn pg svn:externals -R wc
      $ svn st wc
      X       wc/A
      
      The NODES row for A/g still exists.
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            philipm Philip Martin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment