颠覆日食和多个存储库 [英] subversion eclipse and multiple repositories

查看:58
本文介绍了颠覆日食和多个存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个有趣的svn问题.使用eclipse,我有svn插件,并且效果很好.还是直到几天前,当我在远程服务器上为其他项目设置存储库时(在远程服务器上,因为我正与另一位开发人员共享代码.本地svn存储库用于我自己的项目).

Pycharm ...哦,pycharm.让我们暂时不用担心这个奇怪的应用程序,但是请放心,新的回购协议可以正常工作.

问题是,我只是尝试使用svn eclipse提交一些代码,它怎么说?

svn:提交失败(详细信息如下):svn:"http://localhost/svn/projectA/app/views/pages"的选项:无法解析主机名"svn://xyza/projectB" .:请求的名称有效,但没有请求类型的数据被找到.(http://localhost)

现在,我的projectA(本地,私人作品)曾经很高兴地坐在 http://localhost/projectA (或的东西.我真的不知道它过去坐在哪里了,如何找到这个?)愚蠢的projectB似乎接管了 entire svn提交过程(不确定如何).我该如何告诉eclipse或svn或其他有关projectA代码的信息,使用一个存储库?然后,对于projectB,我有使用 other 存储库的pycharm吗?

更新:我试过了:

  svn开关-重新定位svn://x.y.z.a/projectA/http://localhost/projectB 

这根本没有做任何事情-好吧,我仍然遇到相同的错误.我可能在projectB的旧svn位置上有错误,我能以某种方式找到它吗?

解决方案

啊.

我知道发生了什么-我不知道它是怎么发生的,但是如果发生了,那是颠覆性的事情,而不是蚀性的事情.

在类似的线程上查看此答案: https://stackoverflow.com/a/2246140/1061426

(我之所以选择它,是因为它可以让您找到svn存储库所在的位置!)(这就是说,当文件弹出时,只需运行另存为即可查看文件的位置!)

(如果您没有乌龟,这是Windows 7上的回购所在位置:

  C:\ Users \ Andrew \ AppData \ Roaming \ Subversion 

)

i have a fun svn problem. With eclipse, i have the svn plugin, and that works all well and good. Or did, until a few days ago, when i setup a repo on a remote server for a different project (on a remote server because i'm sharing code with another developer. The local svn repo is for my own projects).

Pycharm... oh pycharm. Let's not worry about that odd ball app for now, but rest assured that the new repo works fine.

Problem is, i just tried to commit some code using my svn eclipse, and what does it say?

svn: Commit failed (details follow): svn: OPTIONS of 'http://localhost/svn/projectA/app/views/pages': Could not resolve hostname `svn://x.y.z.a/projectB.': The requested name is valid, but no data of the requested type was found. (http://localhost)

Now, my projectA (local, private work) used to happily sit at http://localhost/projectA (or something. I don't really know where it used to sit anymore, how do i find this out?) Stupid projectB seems to have taken over the entire svn committing process (unsure how). How can i tell eclipse or svn or whatever that for projectA code, use one repository? And then, for projectB, i have pycharm using the other repository?

UPDATE: i tried:

svn switch --relocate svn://x.y.z.a/projectA/ http://localhost/projectB

this didn't do anything at all - well, i still get the same error. I might have the old svn location of projectB wrong, can i find this somehow?

解决方案

Ah.

I see what happened - I do not know HOW it happened, but in case it does, it is a subversion thing, not an eclipse thing.

check this answer out on a similar thread: https://stackoverflow.com/a/2246140/1061426

(i chose this one because, well, it lets you find where the svn repository is!) (and by that i mean, when the file pops up, just run a save-as to see where the file is!)

(in case you do not have tortoise, here is where the repo is on windows 7:

C:\Users\Andrew\AppData\Roaming\Subversion

)

这篇关于颠覆日食和多个存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆