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

move using .. relative path fails on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • 0.33
    • src
    • None
    • Windows 2000

    Description

      A move operation using the .. relative path notation fails. However, if I 
      move to the parent directory and move, it works.
      
      Reproduction:
      
      D:\temp>svnadmin create repo 
      
      D:\temp>mkdir work 
      
      D:\temp>mkdir work\a 
      
      D:\temp>mkdir work\b 
      
      D:\temp>mkdir work\a\foo 
      
      D:\temp>svn import -m "" file:///temp/repo/ work 
      Adding         work/a
      Adding         work/a/foo
      Adding         work/b
      
      Committed revision 1.
      
      D:\temp>rd /s /q work 
      
      D:\temp>svn co file:///temp/repo/ work 
      A  work/a
      A  work/a/foo
      A  work/b
      Checked out revision 1.
      
      D:\temp>cd work\a 
      
      D:\temp\work\a>svn move foo ..\b\bar 
      svn: Working copy not locked
      svn: directory not locked (b)
      
      D:\temp\work\a>cd .. 
      
      D:\temp\work>svn move a\foo b\bar 
      A         b/bar
      D         a/foo
      
      D:\temp\work>
      

      Original issue reported by j_palmucci

      Attachments

        1. 1_test.bat
          0.3 kB
          Subversion Importer
        2. 2_patch.txt
          2 kB
          C. Michael Pilato

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: