mercurial/commands.py
changeset 26368 0224d22ef5d8
parent 26366 a672cc61ab1d
parent 26367 f31ddc9bfa5f
child 26410 4c4b3c37776c
equal deleted inserted replaced
26366:a672cc61ab1d 26368:0224d22ef5d8
  6386             if isinstance(gen, bundle2.unbundle20):
  6386             if isinstance(gen, bundle2.unbundle20):
  6387                 tr = repo.transaction('unbundle')
  6387                 tr = repo.transaction('unbundle')
  6388                 try:
  6388                 try:
  6389                     op = bundle2.processbundle(repo, gen, lambda: tr)
  6389                     op = bundle2.processbundle(repo, gen, lambda: tr)
  6390                     tr.close()
  6390                     tr.close()
       
  6391                 except error.UnsupportedPartError as exc:
       
  6392                     raise util.Abort(_('%s: unknown bundle feature, %s')
       
  6393                                      % (fname, exc),
       
  6394                                      hint=_("see https://mercurial.selenic.com/"
       
  6395                                             "wiki/BundleFeature for more "
       
  6396                                             "information"))
  6391                 finally:
  6397                 finally:
  6392                     if tr:
  6398                     if tr:
  6393                         tr.release()
  6399                         tr.release()
  6394                 changes = [r.get('result', 0)
  6400                 changes = [r.get('result', 0)
  6395                            for r in op.records['changegroup']]
  6401                            for r in op.records['changegroup']]