Mercurial > hg
diff mercurial/commands.py @ 24661:8cf70c97a6e1
bookmarks: show detailed status about outgoing bookmarks
Before this patch, "hg outgoing -B" shows only difference of bookmarks
between two repositories, and it isn't user friendly.
This patch shows detailed status about outgoing bookmarks at "hg
outgoing -B".
To avoid breaking backward compatibility with other tool chains, this
patch shows status, only if --verbose is specified,
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Wed, 08 Apr 2015 02:56:19 +0900 |
parents | bf13b44bbb0a |
children | 7d01371e6358 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Apr 08 02:56:19 2015 +0900 +++ b/mercurial/commands.py Wed Apr 08 02:56:19 2015 +0900 @@ -4795,6 +4795,31 @@ See pull for details of valid destination formats. + .. container:: verbose + + 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 deleted + BM3 234567890abc advanced + BM4 34567890abcd diverged + BM5 4567890abcde changed + + The action taken when pushing depends on the + status of each bookmark: + + :``added``: push with ``-B`` will create it + :``deleted``: push with ``-B`` will delete it + :``advanced``: push will update it + :``diverged``: push with ``-B`` will update it + :``changed``: push with ``-B`` will update it + + From the point of view of pushing behavior, bookmarks + existing only in the remote repository are treated as + ``deleted``, even if it is in fact added remotely. + Returns 0 if there are outgoing changes, 1 otherwise. """ if opts.get('graph'):