comparison mercurial/commands.py @ 15991:85ec8036d0b9 stable

bundle: display info about secret changets while no sharable changeset found
author Alain Leufroy <alain.leufroyATgmailMYDOTcom>
date Wed, 25 Jan 2012 19:05:16 +0100
parents 740b1b4c7958
children 0b05e0bfdc1c
comparison
equal deleted inserted replaced
15990:76630fbbf4fa 15991:85ec8036d0b9
992 outgoing = discovery.findcommonoutgoing(repo, other, 992 outgoing = discovery.findcommonoutgoing(repo, other,
993 onlyheads=heads, 993 onlyheads=heads,
994 force=opts.get('force')) 994 force=opts.get('force'))
995 cg = repo.getlocalbundle('bundle', outgoing) 995 cg = repo.getlocalbundle('bundle', outgoing)
996 if not cg: 996 if not cg:
997 ui.status(_("no changes found\n")) 997 if 'outgoing' in locals() and outgoing.excluded:
998 repo.ui.status(_("no changes found but %i secret changesets\n")
999 % len(outgoing.excluded))
1000 else:
1001 ui.status(_("no changes found\n"))
998 return 1 1002 return 1
999 1003
1000 bundletype = opts.get('type', 'bzip2').lower() 1004 bundletype = opts.get('type', 'bzip2').lower()
1001 btypes = {'none': 'HG10UN', 'bzip2': 'HG10BZ', 'gzip': 'HG10GZ'} 1005 btypes = {'none': 'HG10UN', 'bzip2': 'HG10BZ', 'gzip': 'HG10GZ'}
1002 bundletype = btypes.get(bundletype) 1006 bundletype = btypes.get(bundletype)