Подвижный: Слияние одного файла между ответвлениями в одном repo

Автономный подход утилиты

iconv -f ISO-8859-1 -t UTF-8 in.txt > out.txt
-f ENCODING  the encoding of the input
-t ENCODING  the encoding of the output

Вы не должны определять ни один из этих аргументов. Они примут значение по умолчанию к Вашей текущей локали, которая обычно является UTF-8.

49
задан Martin Geisler 30 March 2012 в 01:24
поделиться

1 ответ

Nope. Mercurial works on a changeset basis.

But you can do a "dummy merge" where you ignore the incoming changes from one of the branches. Before you commit you could then revert selected files to whatever state you want:

% HGMERGE=internal:local hg merge     # keep my files
% hg revert --rev other-branch a.txt  # update a.txt to other branch
% hg commit -m 'Dummy merge to pick a.txt from other-branch.'

Maybe that will help you a bit.

18
ответ дан 7 November 2019 в 11:48
поделиться
Другие вопросы по тегам:

Похожие вопросы: