# HG changeset patch # User Alain Leufroy # Date 1327514716 -3600 # Node ID 85ec8036d0b9ec6526ad78b4c890563346510c1b # Parent 76630fbbf4fa27dcbce6758135408fcb9c00d100 bundle: display info about secret changets while no sharable changeset found diff -r 76630fbbf4fa -r 85ec8036d0b9 mercurial/commands.py --- a/mercurial/commands.py Mon Jan 23 12:26:01 2012 -0600 +++ b/mercurial/commands.py Wed Jan 25 19:05:16 2012 +0100 @@ -994,7 +994,11 @@ force=opts.get('force')) cg = repo.getlocalbundle('bundle', outgoing) if not cg: - ui.status(_("no changes found\n")) + if 'outgoing' in locals() and outgoing.excluded: + repo.ui.status(_("no changes found but %i secret changesets\n") + % len(outgoing.excluded)) + else: + ui.status(_("no changes found\n")) return 1 bundletype = opts.get('type', 'bzip2').lower() diff -r 76630fbbf4fa -r 85ec8036d0b9 tests/test-bundle.t --- a/tests/test-bundle.t Mon Jan 23 12:26:01 2012 -0600 +++ b/tests/test-bundle.t Wed Jan 25 19:05:16 2012 +0100 @@ -39,6 +39,15 @@ $ cd .. $ hg init empty +Bundle and phase + + $ hg -R test phase --force --secret 0 + $ hg -R test bundle phase.hg empty + searching for changes + no changes found but 9 secret changesets + [1] + $ hg -R test phase --draft -r 'head()' + Bundle --all $ hg -R test bundle --all all.hg