equal
deleted
inserted
replaced
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')) |