1

We have a Mercurial repository with a standard of using Unix-style line endings.

If a user hasn't noticed EOL issues when committing a file - they may be 'helpfully' hidden by the diff tool - then it's a pain to fix down the line unless it's noticed immediately.

Is there a way to use "hg convert" (or similar) to re-create the repository with consistent line endings?

4

1 に答える 1

1

簡単な方法はありませんがhg transplant、オプションを使用して、--filterこれらの変更セットを修正された形式で再適用し、次にhg strip間違った形式で再適用することができます。人々が将来それらをプッシュするのを防ぐために、おそらく中央pretxnchangegroupのリポジトリにフックをかけるのは面倒なことです。

于 2012-05-28T22:38:19.860 に答える