hg identify [-nibtB] [-r РЕВИЗИЯ] [ИСТОЧНИК]
псевдонимы: id
identify the working directory or specified revision
Print a summary identifying the repository state at REV using one or two parent hash identifiers, followed by a "+" if the working directory has uncommitted changes, the branch name (if not default), a list of tags, and a list of bookmarks.
When REV is not given, print a summary of the current state of the repository including the working directory. Specify -r. to get information of the working directory parent without scanning uncommitted changes.
Specifying a path to a repository root or Mercurial bundle will cause lookup to operate on that repository/bundle.
Template:
The following keywords are supported in addition to the common template keywords and functions. See also 'hg help templates'.
Examples:
hg id --id > build-id.dat
hg id -n -r 1.3
hg id -r tip https://www.mercurial-scm.org/repo/hg/
See 'hg log' for generating more information about specific revisions, including full hash identifiers.
Returns 0 if successful.
options:
| -r | --rev РЕВИЗИЯ | описать заданную ревизию |
| -n | --num | показать локальный номер ревизии |
| -i | --id | показать глобальный идентификатор ревизии |
| -b | --branch | показать ветку |
| -t | --tags | показать метки |
| -B | --bookmarks | показать закладки |
| -e | --ssh КОМАНДА | используемая команда для ssh |
| --remotecmd КОМАНДА | команда Mercurial, которая будет запущена на отдалённом компьютере | |
| --insecure | не проверять сертификат сервера (игнорируя настройку web.cacerts) | |
| -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) |