Failed to add 'XXX': object of the same name already already exists
2009-02-17 15:46
761 查看
This error message typically occurs when you try to update your working copy. It is thrown because Subversion never deletes or overwrites existing local data. There may be three reasons why you get this error:
You have a local unversioned file with the same name as a file which has been added by somebody else recently. In this case the solution is to move your local file somewhere else (or rename it), then update. Afterwards you can decide whether the two files need to be combined in some way, or if the choice of name is purely coincidental you can give your file a different name.
A file has been renamed in the repository, but it differs only in case, like Install.txt to install.txt, and you have local changes. When you update, you end up in a situation (1), where the modified local file appears as unversioned. Move it somewhere else, update, then sort out the mess.
There are actually 2 different files in the repository whose names differ only in case. This cannot work on a Windows checkout, because the Windows file system is not case-sensitive. It is likely that one of the files got added by mistake, so you need to find out which one, make sure there are no changes committed to the wrong file, then delete it.
There are several ways to solve the problem and to prevent it from happening again. Take a look at these instructions
You have a local unversioned file with the same name as a file which has been added by somebody else recently. In this case the solution is to move your local file somewhere else (or rename it), then update. Afterwards you can decide whether the two files need to be combined in some way, or if the choice of name is purely coincidental you can give your file a different name.
A file has been renamed in the repository, but it differs only in case, like Install.txt to install.txt, and you have local changes. When you update, you end up in a situation (1), where the modified local file appears as unversioned. Move it somewhere else, update, then sort out the mess.
There are actually 2 different files in the repository whose names differ only in case. This cannot work on a Windows checkout, because the Windows file system is not case-sensitive. It is likely that one of the files got added by mistake, so you need to find out which one, make sure there are no changes committed to the wrong file, then delete it.
There are several ways to solve the problem and to prevent it from happening again. Take a look at these instructions
相关文章推荐
- svn问题之一: Failed to add file 'xxx': an unversioned file of the same name already exists
- "Failed to add file '(name here)': object of the same name already exists
- svn出现错误svn: Failed to add directory ‘xxx’: an unversioned directory of the same name already
- svn: Failed to add directory '../target': an unversioned directory of the same name already exis
- svn 如果遇到an unversioned directory of the same name already exists的解决办法
- TortoiseSvn :object of the same name is already scheduled for addition
- This platform could not be created because a solution platform of the same name already exists.
- The last update operation tried to add the file 'xxx.java',but the file already exists universioned
- svn 如果遇到an unversioned directory of the same name already exists的解决办法
- This platform could not be created because a solution platform of the same name already exists解决方法
- BEA-150021 - The admin server failed to authenticate the identity of the user username starting the managed server.
- Ehcache配置时出错- Another unnamed CacheManager already exists in the same VM. Please provide unique name
- 解决ssh不能添加已访问的主机到信任列表的问题(Failed to add the host to the list of known hosts)
- Class has two properties of the same name "xxx"
- Failed to add the host to the list of known hosts 问题解决
- Project xxx already exists Add a version or custom suffix using "Name template" in "Advanced" sett
- Ehcache依赖版本问题:Another CacheManager with same name 'es' already exists in the same VM.
- 解决ssh不能添加已访问的主机到信任列表的问题(Failed to add the host to the list of known hosts) .
- CXF报错[1 counts of IllegalAnnotationExceptions]and[Two classes have the same XML type name]and[Use @XmlType.name and @XmlType.namespace to assign different names to them]
- Project xxx already exists Add a version or custom suffix using "Name template" in "Advanced" sett