changeset 49686:b478e1b132e9

repo-or-peer: deprecate calling `islocal` on non-path object There object have a `.local()` method and should use it.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 29 Nov 2022 21:42:08 +0100
parents 229e0ed88895
children 0d5b2e010614
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Nov 30 11:12:48 2022 +0100
+++ b/mercurial/hg.py	Tue Nov 29 21:42:08 2022 +0100
@@ -168,6 +168,7 @@
             return _peerlookup(repo).islocal(repo)
         except AttributeError:
             return False
+    repo.ui.deprecwarn(b"use obj.local() instead of islocal(obj)", b"6.4")
     return repo.local()