diff --git a/hgext/tasks.py b/hgext/tasks.py --- a/hgext/tasks.py +++ b/hgext/tasks.py @@ -1020,7 +1020,7 @@ def taskspush(orig, ui, repo, dest=None, dest, revs, checkout = hg.parseurl( ui.expandpath(dest or 'default-push', dest or 'default'), opts.get('rev')) - cmdutil.setremoteconfig(ui, opts) + cmdutil.remoteui(ui, opts) other = hg.repository(ui, dest) ui.status(_('pushing to %s\n') % url.hidepassword(dest))