- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这个问题与 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/
这个问题在这里已经有了答案: 关闭 10 年前。 Possible Duplicate: How can I see incoming commits in git? “hg 传出”或“hg 传入”
mercurial 命令之间有什么区别, hg 条 hg 取消 hg 恢复 所有这些命令基本上都用于恢复/撤消早期变更集的影响。 最佳答案 hg strip 从存储库中删除变更集及其所有后代。就好像这
您可以使用什么 mercurial 命令在变更集 xyz 之前查看变更集? 如果你这样做 hg log -r :xyz您会看到(包括)xyz 之前的所有变更集 - 按升序列出。但我想轻松地看到之前的变
当我在克隆我的 Git 存储库时,远程内容发生了变化: $ hg push ... abort: refs/heads/master changed on the server, please pul
有人能告诉我为什么最后没有找到任何变化吗? 此外,我收到一条烦人的消息,“.hg/hgrc 中未指定用户名。将不会使用 key 环。” 版本工具:Hg最新版服务器:Linux工作区:~/2012WS
我在我的 Windows 机器上安装了 Tortoise Hg,并且一直通过 Tortoise GUI 和 Windows 命令行使用 mercurial。我按照 http://hg-git.gith
我的项目.hg目录为 40MB。如果我 hg push --verbose --debug到一个空的远程存储库,我看到它发送了数百 MB。额外的开销从何而来? 更新 :hg bundle -a生成一个
对于那些使用带有 MQ 扩展的 Mercurial 的人: 这是我第二次不小心将更改提交到中央存储库( hg push ),而不是将补丁应用到我的工作目录( hg qpush )。 我认为这是非常不幸
在 Mercurial 中,有什么区别 hg revert --all 和 hg up -C? 这两个命令似乎都会恢复所有更改。但有什么区别呢? 最佳答案 通过 hg up,您实际上切换到另一个版本(
如果我从本地 Mercurial 存储库开始,我认为它是“主要”存储库(请原谅我,我的 dvcs 领主),并打算使用 bitbucket 作为备份和问题跟踪工具,我可以进行所有更改在我的本地存储库中并
我的团队使用 mercurial 已经有一段时间了。我们使用 ssh 连接到中央远程存储库。将 ssh 推或拉到远程存储库时没有任何问题......直到今天! 其他人都在局域网上,我远程工作并使用 v
hg revert 和 hg backout 都会还原先前版本所做的更改。两者有什么区别? 最佳答案 考虑到变更集的历史: A --- B --- C --- D --- E [b
我创建了一个新的存储库 test-backout,并在其中添加了一个新文件 file。然后,我每次进行 4 次提交,并使用 将提交编号附加到 file 中 echo [manually entered
在工作中,我使用的是 svn存储库在 7 人之间共享。 为了避免在提交中困扰我的错误并破坏每个人的构建并避免在 svn 中分支,我创建了一个hg svn 的一部分中的存储库我目前正在处理的目录。 我在
我一直在一个分支上做一些开发,并意识到在它完成之前需要先完成其他事情。我决定我将分支我当前的分支并在该分支中进行必要的更改,然后将它们 merge 在一起,然后将我的工作分支 merge 为默认分支。
我有一个使用 mercurial 作为存储库的网络服务器。每天,我们都有应用程序将文件写入我们的服务器,我希望这些文件反射(reflect)在存储库中。有没有一种方法可以添加每天运行的自动“hg ad
在某些情况下,我需要强制 Mercurial 用户运行 hg pull -u在任何之前 hg commit可以允许,即 hg pull将意味着传入队列是空的——此外,我还希望该人使用分支的头部版本。
我正在 Mercurial 中开发一个项目,突然间,当我运行“hg status”时,我在“.hg”目录中看到一堆文件,报告为“未跟踪”。它看起来像这样: ? .hg/00changelog.i ?
这里的问题是 hg 的工作流程显然是在绕圈子: hg pull,再拿一个头 hg merge ,得到未完成的警告未提交的更改 hg commit -m "pre merge commit", 获取消息
我昨天在我的 Mac(雪豹)上重新安装了 Mercurial。 Mercurial 的 UI/控制台语言已从英语更改为丹麦语。我的机器设置为美国英语,键盘布局为丹麦语。我不希望丹麦语翻译生效,因为它不
我是一名优秀的程序员,十分优秀!