1416 ) |
1416 ) |
1417 # i18n: "outgoing" is a keyword |
1417 # i18n: "outgoing" is a keyword |
1418 l = getargs(x, 0, 1, _("outgoing takes one or no arguments")) |
1418 l = getargs(x, 0, 1, _("outgoing takes one or no arguments")) |
1419 # i18n: "outgoing" is a keyword |
1419 # i18n: "outgoing" is a keyword |
1420 dest = l and getstring(l[0], _("outgoing requires a repository path")) or '' |
1420 dest = l and getstring(l[0], _("outgoing requires a repository path")) or '' |
1421 dest = repo.ui.expandpath(dest or 'default-push', dest or 'default') |
1421 if not dest: |
1422 dest, branches = hg.parseurl(dest) |
1422 # ui.paths.getpath() explicitly tests for None, not just a boolean |
|
1423 dest = None |
|
1424 path = repo.ui.paths.getpath(dest, default=('default-push', 'default')) |
|
1425 if not path: |
|
1426 raise error.Abort(_('default repository not configured!'), |
|
1427 hint=_("see 'hg help config.paths'")) |
|
1428 dest = path.pushloc or path.loc |
|
1429 branches = path.branch, [] |
|
1430 |
1423 revs, checkout = hg.addbranchrevs(repo, repo, branches, []) |
1431 revs, checkout = hg.addbranchrevs(repo, repo, branches, []) |
1424 if revs: |
1432 if revs: |
1425 revs = [repo.lookup(rev) for rev in revs] |
1433 revs = [repo.lookup(rev) for rev in revs] |
1426 other = hg.peer(repo, {}, dest) |
1434 other = hg.peer(repo, {}, dest) |
1427 repo.ui.pushbuffer() |
1435 repo.ui.pushbuffer() |