Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/utils/urlutil.py @ 51178:591845f89ada
cleanup: drop `path.pushloc` deprecated since 6.5
This was scheduled for removal, let us remove it.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 08 Nov 2023 22:11:00 +0100 |
parents | 18c8c18993f0 |
children | 5c9c41273367 |
comparison
equal
deleted
inserted
replaced
51177:88ef80210d67 | 51178:591845f89ada |
---|---|
921 new.main_path = self | 921 new.main_path = self |
922 if self._pushloc: | 922 if self._pushloc: |
923 new._setup_url(self._pushloc) | 923 new._setup_url(self._pushloc) |
924 return new | 924 return new |
925 | 925 |
926 def pushloc(self): | |
927 """compatibility layer for the deprecated attributes""" | |
928 from .. import util # avoid a cycle | |
929 | |
930 msg = "don't use path.pushloc, use path.get_push_variant()" | |
931 util.nouideprecwarn(msg, b"6.5") | |
932 return self._pushloc | |
933 | |
934 def _validate_path(self): | 926 def _validate_path(self): |
935 # When given a raw location but not a symbolic name, validate the | 927 # When given a raw location but not a symbolic name, validate the |
936 # location is valid. | 928 # location is valid. |
937 if ( | 929 if ( |
938 not self.name | 930 not self.name |