mercurial/commands.py
branchstable
changeset 15991 85ec8036d0b9
parent 15985 740b1b4c7958
child 15993 0b05e0bfdc1c
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)