mercurial/commands.py
changeset 3859 8c24b6fd5866
parent 3858 7c12958eba26
child 3862 46abbed02b2d
equal deleted inserted replaced
3858:7c12958eba26 3859:8c24b6fd5866
  2472     """apply a changegroup file
  2472     """apply a changegroup file
  2473 
  2473 
  2474     Apply a compressed changegroup file generated by the bundle
  2474     Apply a compressed changegroup file generated by the bundle
  2475     command.
  2475     command.
  2476     """
  2476     """
  2477     gen = changegroup.readbundle(urllib.urlopen(fname))
  2477     gen = changegroup.readbundle(urllib.urlopen(fname), fname)
  2478     modheads = repo.addchangegroup(gen, 'unbundle', 'bundle:' + fname)
  2478     modheads = repo.addchangegroup(gen, 'unbundle', 'bundle:' + fname)
  2479     return postincoming(ui, repo, modheads, opts['update'])
  2479     return postincoming(ui, repo, modheads, opts['update'])
  2480 
  2480 
  2481 def update(ui, repo, node=None, clean=False, branch=None, date=None):
  2481 def update(ui, repo, node=None, clean=False, branch=None, date=None):
  2482     """update or merge working directory
  2482     """update or merge working directory