Scroll to navigation

HG(INCOMING) HG(INCOMING)

NAME

hg incoming - show new changesets found in source

SYNOPSIS

hg incoming [-p] [-n] [-M] [-f] [-r REV]... [--bundle FILENAME] [SOURCE]

DESCRIPTION

Show new changesets found in the specified path/URL or the default pull location. These are the changesets that would have been pulled by hg pull at the time you issued this command.

See pull for valid source format details.

With -B/--bookmarks, the result of bookmark comparison between local and remote repositories is displayed. With -v/--verbose, status is also displayed for each bookmark like below:

BM1               01234567890a added
BM2               1234567890ab advanced
BM3               234567890abc diverged
BM4               34567890abcd changed

The action taken locally when pulling depends on the status of each bookmark:

pull will create it

pull will update it

pull will create a divergent bookmark

result depends on remote changesets

From the point of view of pulling behavior, bookmark existing only in the remote repository are treated as added, even if it is in fact locally deleted.

For remote repository, using --bundle avoids downloading the changesets twice if the incoming is followed by a pull.

Examples:

  • show incoming changes with patches and full description:

    hg incoming -vp
        
  • show incoming changes excluding merges, store a bundle:

    hg in -vpM --bundle incoming.hg
    hg pull incoming.hg
        
  • briefly list changes inside a bundle:

    hg in changes.hg -T "{desc|firstline}\n"
        

    Returns 0 if there are incoming changes, 1 otherwise.

OPTIONS

run even if remote repository is unrelated
show newest record first
file to store the bundles into
a remote changeset intended to be added
compare bookmarks
a specific branch you would like to pull
show patch
use git extended diff format
limit number of changes displayed
do not show merges
output diffstat-style summary of changes
show the revision DAG
display using template map file (DEPRECATED)
display with template
specify ssh command to use
specify hg command to run on the remote side
do not verify server certificate (ignoring web.cacerts config)
recurse into subrepositories

[+] marked option can be specified multiple times

ALIASES

in