mercurial/commands.py
changeset 2673 109a22f5434a
parent 2662 2c5d5cf35034
child 2694 0fb28dbf0dc7
child 2716 4af4e1870fa0
equal deleted inserted replaced
2671:82864a2eb709 2673:109a22f5434a
  2761                 yield chunk
  2761                 yield chunk
  2762     else:
  2762     else:
  2763         raise util.Abort(_("%s: unknown bundle compression type")
  2763         raise util.Abort(_("%s: unknown bundle compression type")
  2764                          % fname)
  2764                          % fname)
  2765     gen = generator(util.filechunkiter(f, 4096))
  2765     gen = generator(util.filechunkiter(f, 4096))
  2766     modheads = repo.addchangegroup(util.chunkbuffer(gen), 'unbundle')
  2766     modheads = repo.addchangegroup(util.chunkbuffer(gen), 'unbundle',
       
  2767                                    'bundle:' + fname)
  2767     return postincoming(ui, repo, modheads, opts['update'])
  2768     return postincoming(ui, repo, modheads, opts['update'])
  2768 
  2769 
  2769 def undo(ui, repo):
  2770 def undo(ui, repo):
  2770     """undo the last commit or pull (DEPRECATED)
  2771     """undo the last commit or pull (DEPRECATED)
  2771 
  2772