Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Mercurial は便利なアーカイブ コマンドをサポートしており、すべてのファイルを特定のリビジョン (コメントでこれを指摘してくれた Ry4an に感謝します) にあるように、別のフォルダー/zip ファイルなどにエクスポートできます。これは次のように行われます。
hg archive -r REV destination
特定のリビジョン以降に変更されたファイルのみを先頭にエクスポートする方法はありますか?
ありがとう、ボアズ
アーカイブが何をするかについてのあなたの誤解についての私のコメントを見てください。それを考えると、リビジョン X からリビジョン Y に変更されたファイルのみでアーカイブを構築する方法が実際に必要な場合はまだないかもしれませんが、本当に必要な場合に備えて、次のようにします。
hg grep -r X:Y --all . | cut -d : -f 1 | sort -u | sed 's/^/-I /' | xargs echo hg archive