Announcement

Collapse
No announcement yet.

svn '.' is not a working copy

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • svn '.' is not a working copy

    Hi forum,

    I've created a repostitory in /var/local/svn/myproject. Here I've added a folder called "sample". In this folder, I've to create files and folders, where the users will be checking out. I've added two files "names.txt" and "file.txt" When my I checkout using RapidSVN, I'm able to see only names.txt and file.txt. Now, When I create a folder called "samp" in that location using the commands, I'm getting the following error "svn '.' is not a working copy". I couldn't figure it out what exactly it is.
    I've used the following commands

    root@nizam-desktop:~# cd /var/local/svn/myproject/sample/sample/
    root@nizam-desktop:/var/local/svn/myproject/sample/sample# svn add samp
    svn: '.' is not a working copy

    Any help would be greatly appreciated.

    Thanks in advance.

  • #2
    Repositories are not working copies. You say you have created a repository in /var/local/svn/myproject, so you must check it out to a different location and work on that working copy. You can't just cd into the repository directory and expect to do anything.

    Reading the free book will help you understand the basic workflow: http://svnbook.red-bean.com/en/1.7/index.html

    But in a nut shell, you should be doing something like:

    Code:
    $ svn co http://host/myproject  working_copy  # Substitute for whatever URL you need to access your repository.
    $ cd working_copy
    $ mkdir sample
    $ svn add sample
    $ svn ci -m "Commit!"
    Notice how you should be doing things in a local working copy. The repository directory itself should not be tampered with.

    Comment


    • #3
      Originally posted by mbooth View Post
      Repositories are not working copies. You say you have created a repository in /var/local/svn/myproject, so you must check it out to a different location and work on that working copy. You can't just cd into the repository directory and expect to do anything.

      Reading the free book will help you understand the basic workflow: http://svnbook.red-bean.com/en/1.7/index.html

      But in a nut shell, you should be doing something like:

      Code:
      $ svn co http://host/myproject  working_copy  # Substitute for whatever URL you need to access your repository.
      $ cd working_copy
      $ mkdir sample
      $ svn add sample
      $ svn ci -m "Commit!"
      Notice how you should be doing things in a local working copy. The repository directory itself should not be tampered with.
      hi, after entring commands now i had this error:

      trn@trn ~/Documents/svn $ svn co http://192.168.1.2/www/project_trn/ .
      svn: OPTIONS of 'http://192.168.1.2/www/project_trn': 200 OK (http://192.168.1.2)
      trn@trn ~/Documents/svn $ svn ci -m "commit"
      svn: '/home/trn/Documents/svn' is not a working copy

      Comment

      Working...
      X