equal
deleted
inserted
replaced
686 |
686 |
687 Returns None if ``name`` is not a registered path, a URI, or a local |
687 Returns None if ``name`` is not a registered path, a URI, or a local |
688 path to a repo. |
688 path to a repo. |
689 """ |
689 """ |
690 msg = b'getpath is deprecated, use `get_*` functions from urlutil' |
690 msg = b'getpath is deprecated, use `get_*` functions from urlutil' |
691 ui.deprecwarn(msg, '6.0') |
691 ui.deprecwarn(msg, b'6.0') |
692 # Only fall back to default if no path was requested. |
692 # Only fall back to default if no path was requested. |
693 if name is None: |
693 if name is None: |
694 if not default: |
694 if not default: |
695 default = () |
695 default = () |
696 elif not isinstance(default, (tuple, list)): |
696 elif not isinstance(default, (tuple, list)): |