# HG changeset patch # User Alain Leufroy # Date 2012-01-25 18:41:34 # Node ID 963c8a553524fe81468c184696a7437a83bb88f4 # Parent 85ec8036d0b9ec6526ad78b4c890563346510c1b outgoing: display info about secret changets while no sharable changeset found diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -511,7 +511,11 @@ def _outgoing(ui, repo, dest, opts): force=opts.get('force')) o = outgoing.missing if not o: - ui.status(_("no changes found\n")) + if outgoing.excluded: + repo.ui.status(_("no outgoing changes but %i secret changesets\n") + % len(outgoing.excluded)) + else: + ui.status(_("no changes found\n")) return None return o diff --git a/tests/test-incoming-outgoing.t b/tests/test-incoming-outgoing.t --- a/tests/test-incoming-outgoing.t +++ b/tests/test-incoming-outgoing.t @@ -399,6 +399,15 @@ test outgoing date: Thu Jan 01 00:00:00 1970 +0000 summary: 13 +test outgoing with secret changesets + + $ hg -R test-dev phase --force --secret 9 + $ hg -R test-dev outgoing test + comparing with test + searching for changes + no outgoing changes but 5 secret changesets + [1] + $ hg -R test-dev phase --draft -r 'head()' limit to 3 changesets