equal
deleted
inserted
replaced
6370 if isinstance(gen, bundle2.unbundle20): |
6370 if isinstance(gen, bundle2.unbundle20): |
6371 tr = repo.transaction('unbundle') |
6371 tr = repo.transaction('unbundle') |
6372 try: |
6372 try: |
6373 op = bundle2.processbundle(repo, gen, lambda: tr) |
6373 op = bundle2.processbundle(repo, gen, lambda: tr) |
6374 tr.close() |
6374 tr.close() |
|
6375 except error.UnsupportedPartError as exc: |
|
6376 raise util.Abort(_('%s: unknown bundle feature, %s') |
|
6377 % (fname, exc), |
|
6378 hint=_("see https://mercurial.selenic.com/" |
|
6379 "wiki/BundleFeature for more " |
|
6380 "information")) |
6375 finally: |
6381 finally: |
6376 if tr: |
6382 if tr: |
6377 tr.release() |
6383 tr.release() |
6378 changes = [r.get('result', 0) |
6384 changes = [r.get('result', 0) |
6379 for r in op.records['changegroup']] |
6385 for r in op.records['changegroup']] |