Show More
@@ -1653,7 +1653,11 b' def trypullbundlefromurl(ui, repo, url):' | |||
|
1653 | 1653 | try: |
|
1654 | 1654 | fh = urlmod.open(ui, url) |
|
1655 | 1655 | cg = readbundle(ui, fh, 'stream') |
|
1656 | changegroup.addchangegroup(repo, cg, 'clonebundles', url) | |
|
1656 | ||
|
1657 | if isinstance(cg, bundle2.unbundle20): | |
|
1658 | bundle2.processbundle(repo, cg, lambda: tr) | |
|
1659 | else: | |
|
1660 | changegroup.addchangegroup(repo, cg, 'clonebundles', url) | |
|
1657 | 1661 | tr.close() |
|
1658 | 1662 | return True |
|
1659 | 1663 | except urllib2.HTTPError as e: |
@@ -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