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

'svn up' stops when it doesn't have to.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • 1.1.0
    • libsvn_wc
    • None

    Description

      If 'svn up' tries to delete a versioned directory, and the directory contains
      unversioned and/or locally-changed files, then an error is thrown back to the
      client:
      
      svn: Won't delete locally modified directory 'b'
      svn: Left locally modified or unversioned files
      
      Then 'svn up' just stops.  But it doesn't have to... the directory *is*
      successfully removed from version control:  it's no longer in any entries file,
      and all that's left behind is an unversioned dir containing some scattered paths
      to unversioned files.  If the user runs 'svn up' again, the update process
      continues and finishes happily.  
      
      So:  why are we stopping at all?
      
      At least one user has reported this annoyance:  their working copies are full of
      unversioned objects (.o files, for example), and every time somebody moves a
      directory in the tree, people have to run 'svn up' at least twice to complete
      the update.  Pretty dumb.
      
      What we really want is svn to print some sort of warning about leaving
      unversioned files behind, not throw a full-out error.  There is no error, just
      some information to report.   It's just a matter of trapping a very specific
      error-code at a precise spot in our code.  Should be quite easy to fix.
      

      Attachments

        1. 2_1806-patch-2.txt
          5 kB
          Karl Fogel
        2. 1_1806.patch
          3 kB
          Subversion Importer

        Activity

          People

            Unassigned Unassigned
            sussman Ben Collins-Sussman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: