[PATCH 4 of 4 RFC stream clone bundles] commands.unbundle: support consuming streaming clone bundles
Adrian Buehlmann
adrian at cadifra.com
Wed Oct 14 18:31:19 CDT 2015
On 2015-10-15 00:34, Gregory Szorc wrote:
[..]
> +We can unpack packed1 bundles
> +
> + $ hg init packed
> + $ hg -R packed unbundle packed.hg
> + 6 files to transfer, 2.55 KB of data
> + transferred 2.55 KB in *.* seconds (*/sec) (glob)
> + (run 'hg heads' to see heads, 'hg merge' to merge)
> +
Potentially stupid idea:
Why not implement a special form of the clone command, which reads from
such a full "bundle" file and creates the repo from that bundle?
$ hg clone packed.hg packed
I don't know if - alternatively - some new option would be needed. Maybe
like this:
$ hg clone --unbundle packed.hg packed
> +We can't unpack packed1 bundles on non-empty repos
> +
> + $ hg -R packed unbundle packed.hg
> + abort: cannot apply stream clone bundle on non-empty repo
> + [255]
> +
..which then could not happen any more
More information about the Mercurial-devel
mailing list