comparison hgext/fetch.py @ 8188:f3abe032fc89

add cmdutil.remoteui remoteui sorts out the issues of getting ssh config options from the local repo into the remote one while not copying other options like hooks.
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Apr 2009 16:50:43 -0500
parents 6ee71f78497c
children 46293a0c7e9f
comparison
equal deleted inserted replaced
8187:d2504744e7a5 8188:f3abe032fc89
58 bheads = [head for head in bheads if len(repo[head].children()) == 0] 58 bheads = [head for head in bheads if len(repo[head].children()) == 0]
59 if len(bheads) > 1: 59 if len(bheads) > 1:
60 raise util.Abort(_('multiple heads in this branch ' 60 raise util.Abort(_('multiple heads in this branch '
61 '(use "hg heads ." and "hg merge" to merge)')) 61 '(use "hg heads ." and "hg merge" to merge)'))
62 62
63 cmdutil.setremoteconfig(ui, opts) 63 other = hg.repository(cmdutil.remoteui(repo, opts),
64 64 ui.expandpath(source))
65 other = hg.repository(ui, ui.expandpath(source))
66 ui.status(_('pulling from %s\n') % 65 ui.status(_('pulling from %s\n') %
67 url.hidepassword(ui.expandpath(source))) 66 url.hidepassword(ui.expandpath(source)))
68 revs = None 67 revs = None
69 if opts['rev']: 68 if opts['rev']:
70 if not other.local(): 69 if not other.local():