git-svn “无法找到 revmap”

发布于 2024-11-18 15:25:31 字数 831 浏览 1 评论 0原文

我按照这个教程进行操作: http://www.beletsky.net/2011/06/how-to-start-using-git-in-svn-based.html beletsky.net/2011/06/how-to-start-using-git-in-svn-based.html

我这样做了,它工作了一段时间,我可以重新设置基点和提交等等。

但后来我在执行“git svn rebase”时遇到错误: “找不到转速图” 看来git-svn突然认为我的分支是svn主干...

这可能是答案: git-svn 仅导入分支

但我根本不够聪明,无法理解它。

编辑 我在有效的“git svn rebase”和给出错误的“git svn rebase”之间所做的就是创建一个分支并存储一点......

**编辑2 ** 这看起来也很有用: git svn 克隆 > git svn 变基 >无法从工作树历史记录中确定上游 SVN 信息

I followed this tutorial:
http://www.beletsky.net/2011/06/how-to-start-using-git-in-svn-based.html

I did this and it worked fine for a while i could rebase and dcommit and all.

But then I got an error when doing "git svn rebase":
"Couldn't find revmap for"
It seems that git-svn suddenly thinks that my branch is the svn trunk...

This might be the answer:
git-svn import only branch

But I am simply not smart enough to unserstand it.

Edit
What I did between the "git svn rebase" that worked and the one giving an error was create a branch and stash a little...

**Edit 2 **
This looks useful as well:
git svn clone > git svn rebase > Unable to determine upstream SVN information from working tree history

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

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

发布评论

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

评论(1

小帐篷 2024-11-25 15:25:31

我似乎一次只能对一棵 svn 树进行变基。我的工作流程目前是:

git checkout master
git svn rebase   ## fetches revisions that touched svn trunk
git rebase master localdevbranch

git checkout Release_1.0
git svn rebase  ## fetches revisions from svn branch/Release_1.0
git rebase Release_1.0 patch-1.1-dev

但是,像你一样,我想一定有更好的方法来做到这一点......在检查 svn 分支代码(但由于某种原因,但不是主干)时,我也遇到了很多 revmap 错误。似乎一个大的“git svn fetch”就能获取所有内容,并立即重新设置所有跟踪分支的基础。一次一个很乏味。

有人吗?

I seem to only be able to rebase one svn tree at a time. My workflow is currently:

git checkout master
git svn rebase   ## fetches revisions that touched svn trunk
git rebase master localdevbranch

git checkout Release_1.0
git svn rebase  ## fetches revisions from svn branch/Release_1.0
git rebase Release_1.0 patch-1.1-dev

But, like you, I imagine there must be a better way to do this... I get lots of revmap errors as well when checking out the svn branch code (but not trunk, for some reason). Seems like one big 'git svn fetch' would get everything, and rebase all the tracking branches at once. One at a time is tedious.

Anyone?

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