git-svn“无法找到revmap for” [英] git-svn "Couldn't find revmap for"

查看:111
本文介绍了git-svn“无法找到revmap for”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循这个教程:
http://www.beletsky.net/2011/06/how-to-start-using-git-in-svn-based.html



我做到了这一点,它可以很好地工作一段时间,我可以rebase和dcommit和所有。



但是当我做了git svn rebase:
找不到revmap for
似乎git-svn突然认为我的分支是svn trunk ...

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



但是我的智能程度并不足以隐藏它。
$ b 编辑
我在git svn rebase之间所做的工作与发生错误的那个人之间创建了一个分支并存储了一点......


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

解决方案

我似乎只能够重新绑定一棵svn树一次。我的工作流程目前是:

  git checkout master 
git svn rebase ##获取触及svn trunk的修订
git rebase master localdevbranch

git checkout Release_1.0
git svn rebase ##从svn branch / Release_1.0获取修订版本
git rebase Release_1.0 patch-1.1-dev

但是,像你一样,我想一定有更好的方法来做到这一点......我得到很多revmap错误以及检查svn分支代码(但由于某种原因,不包括中继)。看起来像一个大的'git svn fetch'会得到一切,并立即重新绑定所有的跟踪分支。一次一个是乏味的。

任何人?


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

解决方案

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?

这篇关于git-svn“无法找到revmap for”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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