mercurial/revset.py
branchstable
changeset 11882 b75dea24e296
parent 11650 ebaf117c2642
child 11886 73112cb2a6d7
child 12320 40c40c6f20b8
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)