Show More
@@ -1653,6 +1653,10 b' def trypullbundlefromurl(ui, repo, url):' | |||
|
1653 | 1653 | try: |
|
1654 | 1654 | fh = urlmod.open(ui, url) |
|
1655 | 1655 | cg = readbundle(ui, fh, 'stream') |
|
1656 | ||
|
1657 | if isinstance(cg, bundle2.unbundle20): | |
|
1658 | bundle2.processbundle(repo, cg, lambda: tr) | |
|
1659 | else: | |
|
1656 | 1660 | changegroup.addchangegroup(repo, cg, 'clonebundles', url) |
|
1657 | 1661 | tr.close() |
|
1658 | 1662 | return True |
@@ -128,7 +128,7 b' Bundle with partial content works' | |||
|
128 | 128 | |
|
129 | 129 | Bundle with full content works |
|
130 | 130 | |
|
131 | $ hg -R server bundle --type gzip --base null -r tip full.hg | |
|
131 | $ hg -R server bundle --type gzip-v2 --base null -r tip full.hg | |
|
132 | 132 | 2 changesets found |
|
133 | 133 | |
|
134 | 134 | $ echo "http://localhost:$HGPORT1/full.hg" > server/.hg/clonebundles.manifest |
General Comments 0
You need to be logged in to leave comments.
Login now