11 月初旬リリースの Mercurial 1.7 に向けてメッセージ翻訳の日々を送っていたところ、backout コマンドのオンラインヘルプではたと筆が止まる。 何やら 1.7 版からは --merge オプションが指定されない場合の挙動が変わるらしいのだが、そもそも原文が --merge 指定有りの場合の挙動に終始していて、無指定時の挙動に関しては今ひとつはっきりしない。 ということで、実地検証をしてみることに。 まずは以前の版における backout コマンドの挙動の確認。 以下の様な履歴構成で、作業領域の親リビジョンが 2 である状態を仮定: ここでリビジョン 1 の修正を無かったことにする場合: $ hg backout -m 'backout non tip rev' 1 reverting hoge.txt created new head changeset 3:d1d7a