##// END OF EJS Templates
py3: pass a bytes value for "msg" to nouideprecwarn()...
Denis Laxalde -
r44018:c207c46a default
parent child Browse files
Show More
@@ -49,7 +49,7 b' def offset_type(offset, type):'
49 class BaseIndexObject(object):
49 class BaseIndexObject(object):
50 @property
50 @property
51 def nodemap(self):
51 def nodemap(self):
52 msg = "index.nodemap is deprecated, " "use index.[has_node|rev|get_rev]"
52 msg = b"index.nodemap is deprecated, use index.[has_node|rev|get_rev]"
53 util.nouideprecwarn(msg, b'5.3', stacklevel=2)
53 util.nouideprecwarn(msg, b'5.3', stacklevel=2)
54 return self._nodemap
54 return self._nodemap
55
55
@@ -207,7 +207,7 b' indexformatv0_unpack = indexformatv0.unp'
207 class revlogoldindex(list):
207 class revlogoldindex(list):
208 @property
208 @property
209 def nodemap(self):
209 def nodemap(self):
210 msg = "index.nodemap is deprecated, " "use index.[has_node|rev|get_rev]"
210 msg = b"index.nodemap is deprecated, use index.[has_node|rev|get_rev]"
211 util.nouideprecwarn(msg, b'5.3', stacklevel=2)
211 util.nouideprecwarn(msg, b'5.3', stacklevel=2)
212 return self._nodemap
212 return self._nodemap
213
213
@@ -657,15 +657,15 b' class revlog(object):'
657 @property
657 @property
658 def nodemap(self):
658 def nodemap(self):
659 msg = (
659 msg = (
660 "revlog.nodemap is deprecated, "
660 b"revlog.nodemap is deprecated, "
661 "use revlog.index.[has_node|rev|get_rev]"
661 b"use revlog.index.[has_node|rev|get_rev]"
662 )
662 )
663 util.nouideprecwarn(msg, b'5.3', stacklevel=2)
663 util.nouideprecwarn(msg, b'5.3', stacklevel=2)
664 return self.index.nodemap
664 return self.index.nodemap
665
665
666 @property
666 @property
667 def _nodecache(self):
667 def _nodecache(self):
668 msg = "revlog._nodecache is deprecated, use revlog.index.nodemap"
668 msg = b"revlog._nodecache is deprecated, use revlog.index.nodemap"
669 util.nouideprecwarn(msg, b'5.3', stacklevel=2)
669 util.nouideprecwarn(msg, b'5.3', stacklevel=2)
670 return self.index.nodemap
670 return self.index.nodemap
671
671
General Comments 0
You need to be logged in to leave comments. Login now