gpt4 book ai didi

svn - 使用 HG Subversion 推送到 SVN 时的工作流程

转载 作者:行者123 更新时间:2023-12-03 07:10:10 25 4
gpt4 key购买 nike

这个问题与 this 中提出的问题非常相似问题,但我在解决方法后遇到了一些问题。

问题:

基本上我有一个 subversion 服务器和一个 Mercurial 本地客户端。扩展 hg-subversion 允许 Mercurial 充当 Subversion 客户端。这对我来说是理想的,因为我可以从我的 subversion 开发分支中创建无限的功能分支,并根据我的选择将它们 merge 到一起。

由于 subversion 的限制,我无法将分支 merge 提交到 subversion 存储库。事实上,我不需要提交每个分支 merge ,我只想将“默认”分支头提交到 SVN。

建议的解决方案:

用户 Harvey 建议的解决方法是修改我的工作流程,以包含用于开发的 hgsubversion 克隆的仅 hg 克隆。

引用哈维的话:

The trick is to learn the modified hg<->hgsubversion<->svn workflow. Once you "get" how it works, you won't have any trouble. You'll just type a few more commands. I've actually started writing scripts to make the process (which is repetitive) easier. Typical flow: [in "hg" repo] commit a bunch of changes; push them to "hgsubversion"; [switch to "hgsubversion"] hg update (hgsubversion needs this); hg push to "svn" (which automatically re-pulls after you push and removes your changesets locally); [switch back to "hg"] hg pull from "hgsubversion"; hg strip the older duplicates b/c "hg" isn't an hgsubversion clone and doesn't know to automatically strip the old changesets.

我遇到的问题:

我陷入了从 hgsubversion 到 svn 存储库运行 hg Push 的阶段。我仍然收到错误消息“中止:抱歉,找不到 merge 修订版的 svn 父级。”

诚然,我并不是 100% 理解 hgsubversion 如何将修订版本推送到 svn。老实说,我想看看我的本地副本推送到 svn 服务器的状态。

停止?

最佳答案

出于存档目的,我决定回答我自己的问题(以及那些有相同问题的人)。

我找到了another similar question如果答案只是简单地陈述,那么你就不能这样做。如果这对您有帮助,请参阅上面的链接并为 Eric-Karl 的答案投票。他确实提供了一种恢复方法。

关于svn - 使用 HG Subversion 推送到 SVN 时的工作流程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4853250/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com