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

switch/delete/commit confusion

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • trunk
    • unscheduled
    • libsvn_wc
    • None

    Description

      Delete a switched file:
      
      svnadmin create repo
      svn -mm import repo/format file://`pwd`/repo/A/f
      svn -mm cp file://`pwd`/repo/A/f ^/f2
      svn co file://`pwd`/repo/A wc
      svn sw ^/f2 wc/f
      svn rm wc/f
      
      At this point "svn st" only shows the delete, not the switch, but "svn info"
      still shows the switched URL:
      
      svn info wc/f | grep ^Rel
      Relative URL: ^/f2
      
      A subsequent commit will delete the unswitched URL:
      
      svn -mm ci wc
      svn log -vqrhead file://`pwd`/repo
      ------------------------------------------------------------------------
      r3 | pm | 2013-04-04 11:52:05 +0100 (Thu, 04 Apr 2013)
      Changed paths:
         D /A/f
      ------------------------------------------------------------------------
      
      It's not clear to me how this should behave but the mismatch between the URL
      shown by info and the URL that is deleted is wrong.
      

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            philipm Philip Martin

            Dates

              Created:
              Updated:

              Slack

                Issue deployment