diff mercurial/revset.py @ 11882:b75dea24e296 stable

revset: fix outgoing argument handling
author Wagner Bruna <wbruna@softwareexpress.com.br>
date Thu, 12 Aug 2010 20:54:34 -0300
parents ebaf117c2642
children 73112cb2a6d7 40c40c6f20b8
line wrap: on
line diff
--- 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)