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

'svn move' / 'svn mv' can lose local modifications

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • trunk
    • unscheduled
    • libsvn_wc
    • None

    Description

      Madan U S <madan@collab.net> found this, and I can reproduce it:
      
      If you run 'svn mv' on a versioned file with local mods in the current working
      directory, the local mods are lost.  But if you run the move from one directory
      level above, the mods are not lost!  Attached are two scripts demonstrating
      this.  The first (mv-in-cwd.sh) reproduces the bug.  The second
      (mv-from-above.sh) shows how the bug does not happen when running from the
      parent dir.
      
      This is with Subversion 1.4.0 (trunk dev build, r17234) on Debian GNU/Linux
      2.4.26-1-386.  We've also reproduced it on Fedora Core 2.
      

      Attachments

        1. 3_2435.patch
          2 kB
          Subversion Importer
        2. 2_mv-from-above.sh
          0.8 kB
          Karl Fogel
        3. 1_mv-in-cwd.sh
          0.7 kB
          Karl Fogel

        Activity

          People

            Unassigned Unassigned
            kfogel Karl Fogel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: