Mercurial

ある文字列が含まれていたらコミットを中断する hook

以下を参考に、Windowsのコマンドで使えるものを書いてみた。http://mercurial.selenic.com/wiki/UsefulHooks [hooks] pretxncommit.nocommit = hg export tip | findstr /R "^+.*NOCOMMIT" & if errorlevel 1 (exit /b 0) else (exit /b 1)findstr が文字列…

hg convertが便利

gitやsvnなど他のバージョン管理ソフトのリポジトリを、Mercurialのリポジトリに変換できる。.hg ⇒.hgも可。 私自身は、Mercurial以外のバージョン管理ソフトを使わないので、他のリポジトリからの変換をおこなうことはない。では、なにが便利なのかというと…