mercurial - 如何使用多个hg mq修补程序队列(在一个存储库中与多个子存储库中)

标签 mercurial tortoisehg mercurial-queue

我正在尝试按照MqTutorialHGbook Chapter 13中的说明使用MQ设置我的工作流程。
我苦苦挣扎的部分是如何在版本下拥有多个补丁queque。

备择方案:

I.为每个队列创建一个单独的存储库。为了使其易于管理,请在.hgsub文件中将存储库标记为subrepos

问题:以下结果导致错误:路径包含非法组件

 .hg/patches-queue1 = .hg/patches-queue1

二。 HGbook Chapter 13描述您可以在子目录中添加补丁,例如
 qnew queue1/patch1.diff

问题:所有补丁程序仍在同一队列中,必须按顺序应用

还有另一种方法可以让我的所有修补程序队列都受版本控制并推送吗?
一个存储库中有多个HG MQ补丁队列?

最佳答案

checkout mq的hg qqueue命令。它使您可以自动切换多个补丁队列:

hg qqueue [OPTION] [QUEUE]

manage multiple patch queues

    Supports switching between different patch queues, as well as creating new
    patch queues and deleting existing ones.

    Omitting a queue name or specifying -l/--list will show you the registered
    queues - by default the "normal" patches queue is registered. The
    currently active queue will be marked with "(active)".

    To create a new queue, use -c/--create. The queue is automatically made
    active, except in the case where there are applied patches from the
    currently active queue in the repository. Then the queue will only be
    created and switching will fail.

    To delete an existing queue, use --delete. You cannot delete the currently
    active queue.

    Returns 0 on success.

options:

 -l --list    list all available queues
 -c --create  create new queue
    --rename  rename active queue
    --delete  delete reference to queue
    --purge   delete queue, and remove patch dir

您不能将.hg中的内容作为外部(外部/父)存储库的子存储库,但是每个qqueue存储库应该有不同的路径,并且可能使它们成为父存储库的所有子存储库,本身位于.hg/patches中。

关于mercurial - 如何使用多个hg mq修补程序队列(在一个存储库中与多个子存储库中),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6007573/

相关文章:

version-control - 用 Mercurial 包装 Dropbox 进行版本控制——疯狂的想法?

mercurial - 我的 intellij java 项目找不到 misc.xml

git - 将免费源代码控制转换为 CM Synergy

mercurial - 如果您在补丁队列中的单个补丁中更改太多,该怎么办?

mercurial - 在 Mercurial 中,应用 mq 补丁时是否拉取 "safe"?

Mercurial:将最后一个修订版导出到 MQ

version-control - Mercurial 中变化的传播

mercurial - 从 Mercurial 中的提交中删除文件

version-control - 想在 TortoiseHG/Mercurial 中为我的 .hgignore 文件创建一些默认值

windows - 在 Windows 上的 Mercurial 中更改文件名的大小写