mercurial/debugcommands.py
changeset 32745 23734c0e361f
parent 32694 3ef319e9505f
child 32796 f78d210f599d
equal deleted inserted replaced
32744:33b7283a3828 32745:23734c0e361f
    45     hg,
    45     hg,
    46     localrepo,
    46     localrepo,
    47     lock as lockmod,
    47     lock as lockmod,
    48     merge as mergemod,
    48     merge as mergemod,
    49     obsolete,
    49     obsolete,
       
    50     phases,
    50     policy,
    51     policy,
    51     pvec,
    52     pvec,
    52     pycompat,
    53     pycompat,
    53     registrar,
    54     registrar,
    54     repair,
    55     repair,
   419     """create a stream clone bundle file
   420     """create a stream clone bundle file
   420 
   421 
   421     Stream bundles are special bundles that are essentially archives of
   422     Stream bundles are special bundles that are essentially archives of
   422     revlog files. They are commonly used for cloning very quickly.
   423     revlog files. They are commonly used for cloning very quickly.
   423     """
   424     """
       
   425     # TODO we may want to turn this into an abort when this functionality
       
   426     # is moved into `hg bundle`.
       
   427     if phases.hassecret(repo):
       
   428         ui.warn(_('(warning: stream clone bundle will contain secret '
       
   429                   'revisions)\n'))
       
   430 
   424     requirements, gen = streamclone.generatebundlev1(repo)
   431     requirements, gen = streamclone.generatebundlev1(repo)
   425     changegroup.writechunks(ui, gen, fname)
   432     changegroup.writechunks(ui, gen, fname)
   426 
   433 
   427     ui.write(_('bundle requirements: %s\n') % ', '.join(sorted(requirements)))
   434     ui.write(_('bundle requirements: %s\n') % ', '.join(sorted(requirements)))
   428 
   435