Mercurial の「diff」コマンドで unix または unxutilpatch
コマンドと互換性のある出力を生成するにはどうすればよいですか?
Mercurial をインストールしていない同僚に送信できるパッチ ファイルを作成する必要があります。
使用してみましたが、適用時にコマンドhg diff -r 3:5 > patch1.diff
からエラーが発生します。patch
(待ってください、機会があればすぐにエラーメッセージを投稿します....)
OK、これは私が bitbucket にアップロードしたテスト ケースです。
hg clone https://bitbucket.org/jason_s/test-patch-apply P2base
hg update -r 2 -R P2base
hg diff -r 2:4 -R P2base > p2base.patch
rm -r P2base/.hg
cd P2base
patch < ../p2base.patch
Windows PCでこれを取得します:
C:\tmp\hg\P2base>パッチ < ../p2base.patch
patching file bar.txt
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.