# HG changeset patch # User FUJIWARA Katsunori # Date 2015-04-07 17:56:19 # Node ID 8ea893ab0572790618f72267e3841bd5eb804176 # Parent 3d7c512b258d3b766aa7374aab66ffead8531ad3 bookmarks: show outgoing bookmarks more exactly Before this patch, "hg outgoing -B" shows only bookmarks added locally. Then, users can't know about bookmarks below before "hg push" execution. - deleted locally (even though it may be added remotely from "hg pull" view) - advanced locally - diverged - changed (= remote revision is unknown for local) This patch shows such bookmarks, too. diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py --- a/mercurial/bookmarks.py +++ b/mercurial/bookmarks.py @@ -494,6 +494,14 @@ def outgoing(ui, repo, other): outgoings.append(" %-25s %s\n" % (b, getid(id))) for b, scid, dcid in addsrc: add(b, scid) + for b, scid, dcid in adddst: + add(b, ' ' * 40) + for b, scid, dcid in advsrc: + add(b, scid) + for b, scid, dcid in diverge: + add(b, scid) + for b, scid, dcid in differ: + add(b, scid) if not outgoings: ui.status(_("no changed bookmarks found\n")) diff --git a/tests/test-bookmarks-pushpull.t b/tests/test-bookmarks-pushpull.t --- a/tests/test-bookmarks-pushpull.t +++ b/tests/test-bookmarks-pushpull.t @@ -402,8 +402,11 @@ hgweb $ hg out -B http://localhost:$HGPORT/ comparing with http://localhost:$HGPORT/ searching for changed bookmarks - no changed bookmarks found - [1] + @ 0d2164f0ce0d + X 0d2164f0ce0d + Z 0d2164f0ce0d + foo + foobar $ hg push -B Z http://localhost:$HGPORT/ pushing to http://localhost:$HGPORT/ searching for changes