equal
deleted
inserted
replaced
1611 if not path: |
1611 if not path: |
1612 raise error.Abort( |
1612 raise error.Abort( |
1613 b'default repository not configured!', |
1613 b'default repository not configured!', |
1614 hint=b"see 'hg help config.paths'", |
1614 hint=b"see 'hg help config.paths'", |
1615 ) |
1615 ) |
1616 dest = path.pushloc or path.loc |
1616 if util.safehasattr(path, 'main_path'): |
|
1617 path = path.get_push_variant() |
|
1618 dest = path.loc |
|
1619 else: |
|
1620 dest = path.pushloc or path.loc |
1617 ui.statusnoi18n(b'analysing phase of %s\n' % util.hidepassword(dest)) |
1621 ui.statusnoi18n(b'analysing phase of %s\n' % util.hidepassword(dest)) |
1618 other = hg.peer(repo, opts, dest) |
1622 other = hg.peer(repo, opts, dest) |
1619 |
1623 |
1620 # easier to perform discovery through the operation |
1624 # easier to perform discovery through the operation |
1621 op = exchange.pushoperation(repo, other) |
1625 op = exchange.pushoperation(repo, other) |