mercurial/commands.py
changeset 14553 d976542986d2
parent 14551 68d814a3cefd
child 14556 517e1d88bf7e
equal deleted inserted replaced
14552:3417954c42e9 14553:d976542986d2
  1024     Returns 0 on success.
  1024     Returns 0 on success.
  1025     """
  1025     """
  1026     if opts.get('noupdate') and opts.get('updaterev'):
  1026     if opts.get('noupdate') and opts.get('updaterev'):
  1027         raise util.Abort(_("cannot specify both --noupdate and --updaterev"))
  1027         raise util.Abort(_("cannot specify both --noupdate and --updaterev"))
  1028 
  1028 
  1029     r = hg.clone(hg.remoteui(ui, opts), source, dest,
  1029     r = hg.clone(ui, opts, source, dest,
  1030                  pull=opts.get('pull'),
  1030                  pull=opts.get('pull'),
  1031                  stream=opts.get('uncompressed'),
  1031                  stream=opts.get('uncompressed'),
  1032                  rev=opts.get('rev'),
  1032                  rev=opts.get('rev'),
  1033                  update=opts.get('updaterev') or not opts.get('noupdate'),
  1033                  update=opts.get('updaterev') or not opts.get('noupdate'),
  1034                  branch=opts.get('branch'))
  1034                  branch=opts.get('branch'))