All apps/Mercurial

Mercurial

mercurial

Mercurial is a free, distributed source control management tool.

Runs as hg|macOS, Linux, Windows|www.mercurial-scm.org

Command form

ai-draft · 4 tasks · 38 fields

The everyday hg jobs: clone, status, commit and log. Other commands and global options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui mercurial

hg clone

Clone a repository
Clone a repositoryExample values, fixed in this page — nothing here reaches a terminal
Basic
Source*
string
Destination
directory
TasksEach one presets the form for one job
Clone
sourcedest
ParametersOnly these flags are editable in the form
Source
string · positional 0
Destination
path · positional 1
Bare clone (no working directory)
boolean
--noupdate-U
Revision to check out
string
--updaterev-u
Only up to revision
string · repeatable
--rev-r
Only branch
string · repeatable
--branch-b
Stream clone
boolean
--stream

hg status

Show changed files
Show changed filesExample values, fixed in this page — nothing here reaches a terminal
Basic
Files
any
TasksEach one presets the form for one job
Working directory status
files
ParametersOnly these flags are editable in the form
Files
path · positional 0 · repeatable
Show all files
boolean
--all-A
Only modified
boolean
--modified-m
Only added
boolean
--added-a
Only removed
boolean
--removed-r
Only deleted
boolean
--deleted-d
Only unknown
boolean
--unknown-u
Hide status prefix
boolean
--no-status-n
Compare to revision
string · repeatable
--rev

hg commit

Commit changes
Commit changesExample values, fixed in this page — nothing here reaches a terminal
Basic
Commit message*
string
Add new and remove missing files
--addremove
TasksEach one presets the form for one job
Commit all changes
messageaddremove
ParametersOnly these flags are editable in the form
Files
path · positional 0 · repeatable
Commit message
string
--message-m
Add new and remove missing files
boolean
--addremove-A
Amend the previous commit
boolean
--amend
Close the branch
boolean
--close-branch
Author
string
--user-u
Date
string
--date-d
Include pattern
string · repeatable
--include-I
Exclude pattern
string · repeatable
--exclude-X
Interactive
boolean
--interactive-i

hg log

Show history
Show historyExample values, fixed in this page — nothing here reaches a terminal
Basic
Max entries*
integer
Show graph
--graph
TasksEach one presets the form for one job
Recent history
limitgraph
ParametersOnly these flags are editable in the form
File
path · positional 0
Revision or range
string · repeatable
--rev-r
Keyword in commit
string · repeatable
--keyword-k
Author
string · repeatable
--user-u
Date range
string
--date-d
Max entries
integer
--limit-l
Show patch
boolean
--patch-p
Show diffstat
boolean
--stat
Show graph
boolean
--graph-G
Follow file renames
boolean
--follow-f
Hide merges
boolean
--no-merges-M
Output template
string
--template-T
SourcesEvery flag above is checked against these
man
hg clone [OPTION]... SOURCE [DEST] -U, --noupdate -u,--updaterev <REV> -r,--rev <REV[+]> -b,--branch <BRANCH[+]> --pull --stream
manual

manpages.debian.org

man
hg status [OPTION]... [FILE]... -A, --all -m, --modified -a, --added -r, --removed -d, --deleted -u, --unknown -n, --no-status --rev <REV[+]>
manual

manpages.debian.org

man
hg commit [OPTION]... [FILE]... -A, --addremove --close-branch --amend -m,--message <TEXT> -u,--user <USER> -d,--date <DATE> -I,--include <PATTERN[+]> -X,--exclude <PATTERN[+]> -i, --interactive
manual

manpages.debian.org

man
hg log [OPTION]... [FILE] -f, --follow -r,--rev <REV[+]> -k,--keyword <TEXT[+]> -u,--user <USER[+]> -d,--date <DATE> -p, --patch -l,--limit <NUM> -M, --no-merges --stat -G, --graph -T,--template <TEMPLATE>
manual

manpages.debian.org

Before it fills your prompt, Otty checks the installed hg against its version. A form that does not match your version is not offered.