mercurial/revset.py
changeset 11886 73112cb2a6d7
parent 11708 ba65d61f3158
parent 11882 b75dea24e296
child 11944 df52ff0980fe
--- a/mercurial/revset.py	Sun Aug 15 17:42:44 2010 +0200
+++ b/mercurial/revset.py	Sun Aug 15 18:13:46 2010 +0200
@@ -437,7 +437,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)