mercurial/commands.py
changeset 46720 66fb04552122
parent 46663 a4c19a162615
child 46762 052ab8d0a538
equal deleted inserted replaced
46719:0732a7264226 46720:66fb04552122
  4944 
  4944 
  4945     Returns 0 if there are outgoing changes, 1 otherwise.
  4945     Returns 0 if there are outgoing changes, 1 otherwise.
  4946     """
  4946     """
  4947     # hg._outgoing() needs to re-resolve the path in order to handle #branch
  4947     # hg._outgoing() needs to re-resolve the path in order to handle #branch
  4948     # style URLs, so don't overwrite dest.
  4948     # style URLs, so don't overwrite dest.
  4949     path = ui.paths.getpath(dest, default=(b'default-push', b'default'))
  4949     path = ui.getpath(dest, default=(b'default-push', b'default'))
  4950     if not path:
  4950     if not path:
  4951         raise error.ConfigError(
  4951         raise error.ConfigError(
  4952             _(b'default repository not configured!'),
  4952             _(b'default repository not configured!'),
  4953             hint=_(b"see 'hg help config.paths'"),
  4953             hint=_(b"see 'hg help config.paths'"),
  4954         )
  4954         )
  5678             else:
  5678             else:
  5679                 # if we try to push a deleted bookmark, translate it to null
  5679                 # if we try to push a deleted bookmark, translate it to null
  5680                 # this lets simultaneous -r, -b options continue working
  5680                 # this lets simultaneous -r, -b options continue working
  5681                 opts.setdefault(b'rev', []).append(b"null")
  5681                 opts.setdefault(b'rev', []).append(b"null")
  5682 
  5682 
  5683     path = ui.paths.getpath(dest, default=(b'default-push', b'default'))
  5683     path = ui.getpath(dest, default=(b'default-push', b'default'))
  5684     if not path:
  5684     if not path:
  5685         raise error.ConfigError(
  5685         raise error.ConfigError(
  5686             _(b'default repository not configured!'),
  5686             _(b'default repository not configured!'),
  5687             hint=_(b"see 'hg help config.paths'"),
  5687             hint=_(b"see 'hg help config.paths'"),
  5688         )
  5688         )