hg export [ПАРАМЕТР]... [-o ВЫХФОРМАТ] [-r] [РЕВИЗИЯ]...

вывести заголовок и различия для одной или нескольких ревизий

Print the changeset header and diffs for one or more revisions. If no revision is given, the parent of the working directory is used.

The information shown in the changeset header is: author, date, branch name (if non-default), changeset hash, parent(s) and commit comment.

Примечание:

'hg export' may generate unexpected diff output for merge changesets, as it will compare the merge changeset against its first parent only.

Output may be to a file, in which case the name of the file is given using a template string. See 'hg help templates'. In addition to the common template keywords, the following formatting rules are supported:

"%%"
literal "%" character
"%H"
changeset hash (40 hexadecimal digits)
"%N"
number of patches being generated
"%R"
changeset revision number
"%b"
basename of the exporting repository
"%h"
short-form changeset hash (12 hexadecimal digits)
"%m"
first line of the commit message (only alphanumeric characters)
"%n"
zero-padded sequence number, starting at 1
"%r"
zero-padded changeset revision number
"\"
literal "\" character

Without the -a/--text option, export will avoid generating diffs of files it detects as binary. With -a, export will generate a diff anyway, probably with undesirable results.

With -B/--bookmark changesets reachable by the given bookmark are selected.

Use the -g/--git option to generate diffs in the git extended diff format. See 'hg help diffs' for more information.

With the --switch-parent option, the diff will be against the second parent. It can be useful to review a merge.

Template:

The following keywords are supported in addition to the common template keywords and functions. See also 'hg help templates'.

diff
String. Diff content.
parents
List of strings. Parent nodes of the changeset.

Examples:

Returns 0 on success.

options ([+] can be repeated):

-B --bookmark ЗАКЛАДКА export changes only reachable by given bookmark
-o --output ФОРМАТ печатать в файл с именем согласно ФОРМАТУ
--switch-parent отличия от второй родительской ревизии
-r --rev РЕВИЗИЯ [+] ревизии для экспортирования
-a --text обрабатывать все файлы как текстовые
-g --git use git extended diff format
--binary generate binary diffs in git mode (default)
--nodates опускать даты в заголовках файлов различий
-T --template ШАБЛОН отображать с помощью шаблона

global options ([+] can be repeated):

-R --repository ХРАНИЛИЩЕ корневой каталог хранилища или имя файла комплекта
--cwd КАТАЛОГ сменить рабочий каталог
-y --noninteractive не спрашивать, на все вопросы автоматически выбирать первый вариант
-q --quiet подавлять вывод
-v --verbose включить дополнительный вывод
--color ТИП when to colorize (boolean, always, auto, never, or debug)
--config КОНФИГ [+] задать/переопределить параметр конфигурации (в виде 'секция.параметр=значение')
--config-file HGRC [+] load config file to set/override config options
--debug включить отладочный вывод
--debugger запустить отладчик
--encoding КОДИРОВКА установить кодировку (по умолчанию: UTF-8)
--encodingmode РЕЖИМ установить режим кодировки (по умолчанию: strict)
--traceback всегда печатать трассировку стека при исключении
--time время выполнения команды
--profile профилирование выполнения команды
--version напечатать информацию о версии и выйти
-h --help показать справку и выйти
--hidden учитывать скрытые наборы изменений
--pager ТИП когда использовать прокрутку (логический. always (всегда), auto(автоматически) или never (никогда) (по умолчанию: auto)

mercurial