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

checkout and "Working copy not locked" errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • all
    • unscheduled
    • cmdline client
    • None

    Description

      For the sake of efficiency, our scripts for regression testing check out parts
      of our repository instead of pulling the whole thing.  So for this directory tree:
      
      --baseproj/
      ----subd1/
      ----subd2/
      
      I may only pull the baseproj and baseproj/subd1 directories.  
      
      With cvs, I'd do something like this:
      cvs co -l baseproj
      cd baseproj
      cvs update -d subd1
      
      I'd like to do something equivalent with subversion, so I set up a little test
      repository.  Here's the result of pulling the entire thing:
      
      glandrum: /tmp/co > svn checkout svn://localhost/tmprepos/baseproj baseproj
      A  baseproj/subd2
      A  baseproj/subd2/file21
      A  baseproj/subd2/file22
      A  baseproj/base1
      A  baseproj/base2
      A  baseproj/subd1
      A  baseproj/subd1/file1
      A  baseproj/subd1/file2
      Checked out revision 1.
      
      The repository is there and it is functional.
      
      So now, the problem.  First I checkout the base directory:
      glandrum: /tmp/co > svn checkout -N svn://localhost/tmprepos/baseproj baseproj
      A  baseproj/base1
      A  baseproj/base2
      Checked out revision 1.
      
      Everything ok so far... but now try checking out a subdirectory:
      glandrum: /tmp/co > svn checkout svn://localhost/tmprepos/baseproj/subd1
      baseproj/subd1
      svn: Working copy 'baseproj/subd1' not locked
      
      whoops.  Maybe changing into the directory helps?
      glandrum: /tmp/co > cd baseproj/
      glandrum: /tmp/co/baseproj > svn checkout
      svn://localhost/tmprepos/baseproj/subd1 subd1
      svn: Working copy 'subd1' not locked
      
      Nope... still not working.
      

      http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=6711

      Original issue reported by greglandrum

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: