Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 32745:23734c0e361f
debugcommands: issue warning when repo has secret changesets (issue5589)
This seems like a prudent thing to do. As the inline comment says,
we may want to make this abort once the functionality is stabilized
as part of `hg bundle`. Let's save that debate for another day.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 09 Jun 2017 10:42:19 -0700 |
parents | 3ef319e9505f |
children | f78d210f599d |
comparison
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 |