使用git svn和多个主干镜像zend框架(一)从svn到git

发布于 2024-12-05 07:39:24 字数 1936 浏览 0 评论 0原文

我想要的是一个以 zend 和 zendx 作为镜像的 git repo。几个小时后我仍然没有让它工作。

http://framework.zend.com/svn/framework/standard/trunk/

http://framework.zend.com/svn/framework/extras/trunk/

在其他方法中,我也尝试过这个:

>git svn clone -r HEAD http://framework.zend.com/svn/framework/standard/trunk zend
>cd zend

.git/config
[svn-remote "zend"]
    url = http://framework.zend.com/svn/framework/standard/trunk
    fetch = :refs/remotes/svn/zend
[svn-remote "zendx"]
    url = http://framework.zend.com/svn/framework/extras/trunk
    fetch = :refs/remotes/svn/zendx

>git svn fetch zendx -r HEAD

如果你看一下只有 Zend 的库文件夹那里而不是 ZendX

即使在 git svn rebase zendx

也尝试过之后:

[svn-remote "svn"]
    url = http://framework.zend.com/svn/framework
    fetch = standard/trunk:refs/remotes/zend
    fetch = extras/trunk:refs/remotes/zendx

它必须与缓存、引用或某些东西有关我不知道

我已经阅读了以下页面(除其他外)

http://www.metaltoad.com/blog/using-git-svn-manage-standard-and-non-standard-branches

http://www.jukie.net/~bart/blog/svn-branches-in-git

http://yoush.homelinux.org:8079/tech/git-svn-usage-tips

http://ominian.com/2010/03/02/bridging-the-gap-git-svn-b-f-f/

http://www.codeography.com/2010/03/17/howto-mirror-git-to-subversion.html

http://code.google.com/p/remote-testbed/wiki/SvnSynchronization

我知道有镜子:

http://gitorious.org/zf

https://github.com/mridgway/Zend-Framework-1.x-Mirror

但由于安全和工作原因,我自己也需要一个。

如果你看一下我读过的所有页面,它们都有不同的方法,但基本原理是相同的。一个 svn 镜像并不难,但来自同一个存储库的两个镜像就很困难(对我来说)。

有谁知道该怎么做才能重现?

(我只克隆/获取/重新设置 HEAD,否则所有提交都会下载,需要一段时间)

还有一个额外的问题,我知道他们正在开发 Zend 2.0 版本(使用 git.zendframework.com),有谁知道什么时候会发布生产准备好了吗?

What I want is a git repo with zend and zendx as mirror. After a few hours I still didn't get it to work.

http://framework.zend.com/svn/framework/standard/trunk/

http://framework.zend.com/svn/framework/extras/trunk/

Among other methods I tried this one too:

>git svn clone -r HEAD http://framework.zend.com/svn/framework/standard/trunk zend
>cd zend

.git/config
[svn-remote "zend"]
    url = http://framework.zend.com/svn/framework/standard/trunk
    fetch = :refs/remotes/svn/zend
[svn-remote "zendx"]
    url = http://framework.zend.com/svn/framework/extras/trunk
    fetch = :refs/remotes/svn/zendx

>git svn fetch zendx -r HEAD

if you have a look at the library folder only Zend is in there and not ZendX

even after git svn rebase zendx

also tried:

[svn-remote "svn"]
    url = http://framework.zend.com/svn/framework
    fetch = standard/trunk:refs/remotes/zend
    fetch = extras/trunk:refs/remotes/zendx

It must have something to do with cache, refs, or someting I don't know

I've read the following pages (among others)

http://www.metaltoad.com/blog/using-git-svn-manage-standard-and-non-standard-branches

http://www.jukie.net/~bart/blog/svn-branches-in-git

http://yoush.homelinux.org:8079/tech/git-svn-usage-tips

http://ominian.com/2010/03/02/bridging-the-gap-git-svn-b-f-f/

http://www.codeography.com/2010/03/17/howto-mirror-git-to-subversion.html

http://code.google.com/p/remote-testbed/wiki/SvnSynchronization

I know there are mirrors:

http://gitorious.org/zf

https://github.com/mridgway/Zend-Framework-1.x-Mirror

But I need one myself due to security and work related.

If you have a look at all the pages I read, they all have a different method but the basics are the same. One svn mirror is not that hard but two from the same repo is difficult (to me).

Does anyone know what to do so I can reproduce?

(I only clone/fetch/rebase the HEAD else all commits are downloaded witch takes a while)

One extra side question, I know they are working on version Zend 2.0 (with git.zendframework.com), does anyone know when this will be production ready?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

攒一口袋星星 2024-12-12 07:39:24

我的第一个猜测是 zf 项目中的非标准 svn 结构。 Matthew O'Phinney 可能已经找到了答案,请查看 http://weierophinney.net/matthew/archives/222-Cloning-the-ZF-SVN-repository-in-Git.html

My first guess would be none-standard svn structure in zf project. Matthew O'Phinney may have spotted an answer, take a look on http://weierophinney.net/matthew/archives/222-Cloning-the-ZF-SVN-repository-in-Git.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文