Mark
Mark

Reputation: 1381

svn: warning: '.' is not a working copy

On a server, I used the svn import command to put files into SVN.

I checked the files out to my local machine, made some changes and then committed back.

Now I want to update the server copy of the files, but using svn update, it shows "skipped '.'" and svn status shows "svn: warning: '.' is not a working copy".

Upvotes: 11

Views: 73461

Answers (4)

d1jhoni1b
d1jhoni1b

Reputation: 8025

if you enter

 svn update

and it says that is not a working copy, try looking at your path, look for a level up or down where you are (in the console use:

pwd

that will tell you where you are) and finally just double check that you are actually in a directory of the project, remember empty folders (structure ones) are not meant to be recognized, they just "draw" structures so paths can be more readables, so its basically that, the containing folder is not having files under source control

Your SVN directory is the one that has a folder (hidden) named as '.svn' take a quick look and corroborate you are on the right path

Upvotes: 1

OpMt
OpMt

Reputation: 1742

1) Type in the command 'svn update'

2) Choose the option 'theirs-conflict' which will be the command 'tc'

Now you have a new copy of the file, so you can edit and do whatever you need to this file!

Upvotes: 0

Chris Snowden
Chris Snowden

Reputation: 5002

You have to do an SVN Update first to merge and make a the directory a working copy. Then Commit to commit your changes. You can also sometimes use the SVN Cleanup command to resolve similar kinds of issues.

Upvotes: 1

Eelke
Eelke

Reputation: 21993

Importing into svn doesn't make what you import a working copy. You have to check it out on the server just as you did locally. From then on it will be a working copy and you can use update.

Upvotes: 4

Related Questions