6

MqTutorialおよびHGbookの第13章で説明されているように、MQを使用してワークフローを設定しようとしています。私が苦労しているのは、バージョンの下に複数のパッチキューを作成する方法です。

代替案:

I.キューごとに個別のリポジトリを作成します。これを管理しやすくするには、リポジトリを.hgsubファイルのサブリポジトリとしてマークします。

問題:次の結果、エラーが発生します:パスに不正なコンポーネントが含まれています

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

II。HGbook第13章では、次のようなサブディレクトリにパッチを追加できると説明しています。

 qnew queue1/patch1.diff

問題:すべてのパッチはまだ同じキューにあり、順番に適用する必要があります

すべてのパッチキューをバージョン管理下に置いてプッシュする別の方法はありますか?1つのリポジトリに複数のHGMQパッチキューがありますか?

4

1 に答える 1

14

hg qqueuemqの一部であるコマンドを確認してください。自動化された方法で複数のパッチキューを切り替えることができます。

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内にあります。

于 2011-05-15T19:38:20.747 に答える