提交失败:从 Windows 上的 Eclipse 提交到 Google 代码时,“存储库 UUID '...' 与预期的 UUID '...' 不匹配”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12284894/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Commit failed: "Repository UUID '...' doesn't match expected UUID '...'" when committing to Google Code from Eclipse on Windows
提问by Truth
I was able to work with all my projects on Google Code just fine, but now I can't commit to any of them. I get the error:
我能够在 Google Code 上处理我的所有项目,但现在我无法承诺其中任何一个。我收到错误:
Some of selected resources were not committed. svn: Commit failed (details follow): svn: Repository UUID '2b3ccc6c-acbf-642b-775e-b44874e3cfdd' doesn't match expected UUID '2b06ef8f-344e-f67a-312d-ecb7346c3921'
某些选定的资源未提交。svn:提交失败(详细信息如下):svn:存储库 UUID '2b3ccc6c-acbf-642b-775e-b44874e3cfdd' 与预期的 UUID '2b06ef8f-344e-f67a-312d-cb97
(I am using Eclipse on Windows)
(我在 Windows 上使用 Eclipse)
The same error occurs when I update.
更新时出现同样的错误。
回答by pkout
You can fix this by correcting the UUID of the repository in the local SQLite3 subversion database. To do that, download sqlite3 from here:
您可以通过更正本地 SQLite3 Subversion 数据库中存储库的 UUID 来解决此问题。为此,请从此处下载 sqlite3:
http://www.sqlite.org/download.html
http://www.sqlite.org/download.html
And put it somewhere on PATH so that the system knows about it. Then open the command prompt or your terminal (if you're on linux) in the directory that contains the repository .svn directory. Then open the subversion database file for editing like this:
并将其放在 PATH 上的某个位置,以便系统知道它。然后在包含存储库 .svn 目录的目录中打开命令提示符或终端(如果您使用的是 linux)。然后打开 subversion 数据库文件进行编辑,如下所示:
sqlite3 .svn/wc.db
This will start a command a command line accepting SQL commands. Type in this command, replacing the UUID with the one that shows in your error message:
这将在命令行中启动一个接受 SQL 命令的命令。输入此命令,将 UUID 替换为错误消息中显示的 UUID:
update REPOSITORY set uuid="2b3ccc6c-acbf-642b-775e-b44874e3cfdd" where id=1
Hit enter and CTRL+C to quit. Now you should be able to run your svn commit command again.
按 Enter 和 CTRL+C 退出。现在您应该能够再次运行您的 svn commit 命令。
回答by Lazy Badger
Your Working Copy is linked to Repository, which must have unique Identificator (UUID), which stored as a part of metadata in Working Copy and identity of stored UUID and contacted Repo's UUID is tested on operations, which can modify repository
你的Working Copy链接到Repository,它必须有唯一的标识符(UUID),它作为元数据的一部分存储在Working Copy和存储的UUID的标识和联系的Repo的UUID上进行操作测试,可以修改存储库
For some reason, you try to communicate not to the same repository, from which your WC was created (same URL != same Repo)
出于某种原因,您尝试与创建 WC 的不同存储库进行通信(相同的 URL != 相同的存储库)
Verify current UUIDs with svn info WC-PATH
and svn info REPO-URL
(REPO-URL for main repo and all "foreign", if externals used)
使用svn info WC-PATH
和验证当前 UUID svn info REPO-URL
(主存储库的 REPO-URL 和所有“外部”,如果使用外部)
Repository UUID
value must bethe same
Repository UUID
值必须相同
回答by Tommy Herbert
I just had this problem when I tried to commit two files at once that belonged to separate external repositories. I tried committing them separately and succeeded.
当我尝试一次提交属于单独的外部存储库的两个文件时,我刚刚遇到了这个问题。我尝试分别提交它们并成功了。