开发者

While I do a commit in SVN I get an error

开发者 https://www.devze.com 2023-02-18 06:51 出处:网络
When I try to commit a File in SVN using eclipse i g开发者_如何学Cet the following error Path is not a working copy directory

When I try to commit a File in SVN using eclipse i g开发者_如何学Cet the following error

  Path is not a working copy directory
svn: Commit failed (details follow):
svn: '.' is not a working copy

My workspace: c:\my_workspace\

My project is in: c:\my_workspace\project1

project1 is a checked out project from the same SVN


I had the same problem.

From a console, in the base project folder I used the following commands:

svn resolve --accept working .

That didn't seem to fix Eclipse though. But I could then do:

svn revert .

and it all started being recognised in Eclipse again.

Apparently it's quite easy to do by accident in Eclipse - mine happened by a bad drag/drop from an svn:ignored folder to a SVN folder in Eclipse's file manager which I tried to cancel half-way through.


call svn commit from withing the working directory...

c:/my_workspace/project1>svn commit


You have to import your project into the Subversion repository. The message you get means that the directory is not connected to the repository in any way.


Your .svn metadata folder might have been corrupted/deleted hence the svn not being able to recognize it. You may need to recreate your folder structure by making a clean checkout from your project.

0

精彩评论

暂无评论...
验证码 换一张
取 消