diff -r 2da0cf99b642 -r b75dea24e296 mercurial/revset.py --- a/mercurial/revset.py Sun Aug 15 17:33:03 2010 +0200 +++ b/mercurial/revset.py Thu Aug 12 20:54:34 2010 -0300 @@ -429,7 +429,7 @@ def outgoing(repo, subset, x): import hg # avoid start-up nasties l = getargs(x, 0, 1, _("outgoing wants a repository path")) - dest = l[1:] or '' + dest = l and getstring(l[0], _("outgoing wants a repository path")) or '' dest = repo.ui.expandpath(dest or 'default-push', dest or 'default') dest, branches = hg.parseurl(dest) other = hg.repository(hg.remoteui(repo, {}), dest)