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

updates that delete switched items are confusing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: all
    • Fix Version/s: 1.10-consider
    • Component/s: libsvn_wc
    • Labels:
      None

      Description

      Updates that involve deletes of switched items are confusing. 
      
      svnadmin create repo
      svn co file://`pwd`/repo wc
      touch wc/zig wc/zag
      svn add wc/zig wc/zag
      svn ci wc -m ""
      svn up wc
      svn switch file://`pwd`/repo/zig wc/zag
      svn rm file://`pwd`/repo/zig -m ""
      svn up wc
      D  wc/zag
      D  wc/zig
      Updated to revision 2.
      
      
      The last update is the problem, the wc purports to be a pristine r2 but wc/zag
      is missing.  I don't know what the update should do instead of deleting wc/zag,
      should it revert back to the unswitched URL?
      
      Here's the obvious variation
      
      rm -rf wc
      svn co file://`pwd`/repo wc -r1
      svn switch file://`pwd`/repo/zag wc/zig
      svn up wc
      At revision 2.
      
      In this case both wc/zag and wc/zig exist which is a little unexpected, if
      wc/zig were not switched there would be no zig entry in wc. It's not possible to
      set up the same working copy by checking out r2 and then switching as there is
      no zig item to switch.
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: