##// END OF EJS Templates
revlog: byteify a few error strings...
Matt Harbison -
r48207:5fbac82a default
parent child Browse files
Show More
@@ -1760,7 +1760,7 b' class revlog(object):'
1760 elif compression_mode == COMP_MODE_INLINE:
1760 elif compression_mode == COMP_MODE_INLINE:
1761 return self.decompress(data)
1761 return self.decompress(data)
1762 else:
1762 else:
1763 msg = 'unknown compression mode %d'
1763 msg = b'unknown compression mode %d'
1764 msg %= compression_mode
1764 msg %= compression_mode
1765 raise error.RevlogError(msg)
1765 raise error.RevlogError(msg)
1766
1766
@@ -1826,7 +1826,7 b' class revlog(object):'
1826 elif comp_mode == COMP_MODE_DEFAULT:
1826 elif comp_mode == COMP_MODE_DEFAULT:
1827 ladd(def_decomp(c))
1827 ladd(def_decomp(c))
1828 else:
1828 else:
1829 msg = 'unknown compression mode %d'
1829 msg = b'unknown compression mode %d'
1830 msg %= comp_mode
1830 msg %= comp_mode
1831 raise error.RevlogError(msg)
1831 raise error.RevlogError(msg)
1832
1832
@@ -2054,7 +2054,7 b' class revlog(object):'
2054 elif comp == COMP_MODE_INLINE:
2054 elif comp == COMP_MODE_INLINE:
2055 segment = self.decompress(comp_segment)
2055 segment = self.decompress(comp_segment)
2056 else:
2056 else:
2057 msg = 'unknown compression mode %d'
2057 msg = b'unknown compression mode %d'
2058 msg %= comp
2058 msg %= comp
2059 raise error.RevlogError(msg)
2059 raise error.RevlogError(msg)
2060
2060
General Comments 0
You need to be logged in to leave comments. Login now