equal
deleted
inserted
replaced
4901 """ |
4901 """ |
4902 # hg._outgoing() needs to re-resolve the path in order to handle #branch |
4902 # hg._outgoing() needs to re-resolve the path in order to handle #branch |
4903 # style URLs, so don't overwrite dest. |
4903 # style URLs, so don't overwrite dest. |
4904 path = ui.paths.getpath(dest, default=(b'default-push', b'default')) |
4904 path = ui.paths.getpath(dest, default=(b'default-push', b'default')) |
4905 if not path: |
4905 if not path: |
4906 raise error.Abort( |
4906 raise error.ConfigError( |
4907 _(b'default repository not configured!'), |
4907 _(b'default repository not configured!'), |
4908 hint=_(b"see 'hg help config.paths'"), |
4908 hint=_(b"see 'hg help config.paths'"), |
4909 ) |
4909 ) |
4910 |
4910 |
4911 opts = pycompat.byteskwargs(opts) |
4911 opts = pycompat.byteskwargs(opts) |
5522 # this lets simultaneous -r, -b options continue working |
5522 # this lets simultaneous -r, -b options continue working |
5523 opts.setdefault(b'rev', []).append(b"null") |
5523 opts.setdefault(b'rev', []).append(b"null") |
5524 |
5524 |
5525 path = ui.paths.getpath(dest, default=(b'default-push', b'default')) |
5525 path = ui.paths.getpath(dest, default=(b'default-push', b'default')) |
5526 if not path: |
5526 if not path: |
5527 raise error.Abort( |
5527 raise error.ConfigError( |
5528 _(b'default repository not configured!'), |
5528 _(b'default repository not configured!'), |
5529 hint=_(b"see 'hg help config.paths'"), |
5529 hint=_(b"see 'hg help config.paths'"), |
5530 ) |
5530 ) |
5531 dest = path.pushloc or path.loc |
5531 dest = path.pushloc or path.loc |
5532 branches = (path.branch, opts.get(b'branch') or []) |
5532 branches = (path.branch, opts.get(b'branch') or []) |