第13章 以前のリビジョンの抽出

目次

最後のリビジョンのチェックアウト
もっと以前のリビジョンのチェックアウト
どのように動作するのか — get を使ったリビジョンの抽出

前の章までの例にそって読み進めてきたのななら、以下のようなものができて いるはずです:

あなたの最初のアーカイブ それはまたあなたの デフォルトのアーカイブでもあります:

        % larch my-default-archive
        lord@emf.net--2003-example

        % larch whereis-archive lord@emf.net--2003-example
        /usr/lord/examples/{archives}/2003-example

アーカイブ中にできているhello-worldプロジェクト

        % larch categories 
        hello-world

        % larch branches hello-world
        hello-world--mainline

        % larch versions hello-world--mainline
        hello-world--mainline--0.1

hello-world プロジェクトのふたつのリビジョン

        % larch revisions hello-world--mainline--0.1
        base-0
        patch-1

この章では、アーカイブからどのようにしてリビジョンを取り出すかについて 学びます。

最後のリビジョンのチェックアウト

まだプロジェクトツリーが残っているかも知れません。その場合は、それを いったん削除してください:

        % cd ~/wd

        % ls
        hello-world

        % rm -rf hello-world

hello world プロジェクトの最後のソースを手にいれたいとしましょう。 それには、get コマンドを使います:

        % larch get hello-world--mainline--0.1 hello-world
        [...]


        % ls 
        hello-world

        % ls hello-world
        hw.c    main.c  {arch}