mercurial/revset.py
changeset 46720 66fb04552122
parent 46663 a4c19a162615
child 46809 56d441256e82
equal deleted inserted replaced
46719:0732a7264226 46720:66fb04552122
  1824     # i18n: "outgoing" is a keyword
  1824     # i18n: "outgoing" is a keyword
  1825     dest = (
  1825     dest = (
  1826         l and getstring(l[0], _(b"outgoing requires a repository path")) or b''
  1826         l and getstring(l[0], _(b"outgoing requires a repository path")) or b''
  1827     )
  1827     )
  1828     if not dest:
  1828     if not dest:
  1829         # ui.paths.getpath() explicitly tests for None, not just a boolean
  1829         # ui.getpath() explicitly tests for None, not just a boolean
  1830         dest = None
  1830         dest = None
  1831     path = repo.ui.paths.getpath(dest, default=(b'default-push', b'default'))
  1831     path = repo.ui.getpath(dest, default=(b'default-push', b'default'))
  1832     if not path:
  1832     if not path:
  1833         raise error.Abort(
  1833         raise error.Abort(
  1834             _(b'default repository not configured!'),
  1834             _(b'default repository not configured!'),
  1835             hint=_(b"see 'hg help config.paths'"),
  1835             hint=_(b"see 'hg help config.paths'"),
  1836         )
  1836         )