equal
deleted
inserted
replaced
608 paths or URIs. |
608 paths or URIs. |
609 |
609 |
610 Returns None if ``name`` is not a registered path, a URI, or a local |
610 Returns None if ``name`` is not a registered path, a URI, or a local |
611 path to a repo. |
611 path to a repo. |
612 """ |
612 """ |
|
613 msg = b'getpath is deprecated, use `get_*` functions from urlutil' |
|
614 self.deprecwarn(msg, '6.0') |
613 # Only fall back to default if no path was requested. |
615 # Only fall back to default if no path was requested. |
614 if name is None: |
616 if name is None: |
615 if not default: |
617 if not default: |
616 default = () |
618 default = () |
617 elif not isinstance(default, (tuple, list)): |
619 elif not isinstance(default, (tuple, list)): |