Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
11881:2da0cf99b642 | 11882:b75dea24e296 |
---|---|
427 return [r for r in s if r not in cs] | 427 return [r for r in s if r not in cs] |
428 | 428 |
429 def outgoing(repo, subset, x): | 429 def outgoing(repo, subset, x): |
430 import hg # avoid start-up nasties | 430 import hg # avoid start-up nasties |
431 l = getargs(x, 0, 1, _("outgoing wants a repository path")) | 431 l = getargs(x, 0, 1, _("outgoing wants a repository path")) |
432 dest = l[1:] or '' | 432 dest = l and getstring(l[0], _("outgoing wants a repository path")) or '' |
433 dest = repo.ui.expandpath(dest or 'default-push', dest or 'default') | 433 dest = repo.ui.expandpath(dest or 'default-push', dest or 'default') |
434 dest, branches = hg.parseurl(dest) | 434 dest, branches = hg.parseurl(dest) |
435 other = hg.repository(hg.remoteui(repo, {}), dest) | 435 other = hg.repository(hg.remoteui(repo, {}), dest) |
436 repo.ui.pushbuffer() | 436 repo.ui.pushbuffer() |
437 o = discovery.findoutgoing(repo, other) | 437 o = discovery.findoutgoing(repo, other) |