# HG changeset patch # User FUJIWARA Katsunori # Date 1428429379 -32400 # 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 -r 3d7c512b258d -r 8ea893ab0572 mercurial/bookmarks.py --- a/mercurial/bookmarks.py Wed Apr 08 02:56:19 2015 +0900 +++ b/mercurial/bookmarks.py Wed Apr 08 02:56:19 2015 +0900 @@ -494,6 +494,14 @@ 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 -r 3d7c512b258d -r 8ea893ab0572 tests/test-bookmarks-pushpull.t --- a/tests/test-bookmarks-pushpull.t Wed Apr 08 02:56:19 2015 +0900 +++ b/tests/test-bookmarks-pushpull.t Wed Apr 08 02:56:19 2015 +0900 @@ -402,8 +402,11 @@ $ 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