comparison mercurial/revlog.py @ 51179:d8f65fc72e7b

cleanup: drop deprecated config attribute on the revlog class This code was marked for deletion in the next cycle. We are now in the next cycle.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 08 Nov 2023 22:13:14 +0100
parents 98910135a3bc
children 77b86226dde2
comparison
equal deleted inserted replaced
51178:591845f89ada 51179:d8f65fc72e7b
1374 1374
1375 chunk_cache = self._loadindex() 1375 chunk_cache = self._loadindex()
1376 self._load_inner(chunk_cache) 1376 self._load_inner(chunk_cache)
1377 self._concurrencychecker = concurrencychecker 1377 self._concurrencychecker = concurrencychecker
1378 1378
1379 @property
1380 def _generaldelta(self):
1381 """temporary compatibility proxy"""
1382 util.nouideprecwarn(
1383 b"use revlog.delta_config.general_delta", b"6.6", stacklevel=2
1384 )
1385 return self.delta_config.general_delta
1386
1387 @property
1388 def _checkambig(self):
1389 """temporary compatibility proxy"""
1390 util.nouideprecwarn(
1391 b"use revlog.data_config.checkambig", b"6.6", stacklevel=2
1392 )
1393 return self.data_config.check_ambig
1394
1395 @property
1396 def _mmaplargeindex(self):
1397 """temporary compatibility proxy"""
1398 util.nouideprecwarn(
1399 b"use revlog.data_config.mmap_large_index", b"6.6", stacklevel=2
1400 )
1401 return self.data_config.mmap_large_index
1402
1403 @property
1404 def _censorable(self):
1405 """temporary compatibility proxy"""
1406 util.nouideprecwarn(
1407 b"use revlog.feature_config.censorable", b"6.6", stacklevel=2
1408 )
1409 return self.feature_config.censorable
1410
1411 @property
1412 def _chunkcachesize(self):
1413 """temporary compatibility proxy"""
1414 util.nouideprecwarn(
1415 b"use revlog.data_config.chunk_cache_size", b"6.6", stacklevel=2
1416 )
1417 return self.data_config.chunk_cache_size
1418
1419 @property
1420 def _maxchainlen(self):
1421 """temporary compatibility proxy"""
1422 util.nouideprecwarn(
1423 b"use revlog.delta_config.max_chain_len", b"6.6", stacklevel=2
1424 )
1425 return self.delta_config.max_chain_len
1426
1427 @property
1428 def _deltabothparents(self):
1429 """temporary compatibility proxy"""
1430 util.nouideprecwarn(
1431 b"use revlog.delta_config.delta_both_parents", b"6.6", stacklevel=2
1432 )
1433 return self.delta_config.delta_both_parents
1434
1435 @property
1436 def _candidate_group_chunk_size(self):
1437 """temporary compatibility proxy"""
1438 util.nouideprecwarn(
1439 b"use revlog.delta_config.candidate_group_chunk_size",
1440 b"6.6",
1441 stacklevel=2,
1442 )
1443 return self.delta_config.candidate_group_chunk_size
1444
1445 @property
1446 def _debug_delta(self):
1447 """temporary compatibility proxy"""
1448 util.nouideprecwarn(
1449 b"use revlog.delta_config.debug_delta", b"6.6", stacklevel=2
1450 )
1451 return self.delta_config.debug_delta
1452
1453 @property
1454 def _compengine(self):
1455 """temporary compatibility proxy"""
1456 util.nouideprecwarn(
1457 b"use revlog.feature_config.compression_engine",
1458 b"6.6",
1459 stacklevel=2,
1460 )
1461 return self.feature_config.compression_engine
1462
1463 @property
1464 def upperboundcomp(self):
1465 """temporary compatibility proxy"""
1466 util.nouideprecwarn(
1467 b"use revlog.delta_config.upper_bound_comp",
1468 b"6.6",
1469 stacklevel=2,
1470 )
1471 return self.delta_config.upper_bound_comp
1472
1473 @property
1474 def _compengineopts(self):
1475 """temporary compatibility proxy"""
1476 util.nouideprecwarn(
1477 b"use revlog.feature_config.compression_engine_options",
1478 b"6.6",
1479 stacklevel=2,
1480 )
1481 return self.feature_config.compression_engine_options
1482
1483 @property
1484 def _maxdeltachainspan(self):
1485 """temporary compatibility proxy"""
1486 util.nouideprecwarn(
1487 b"use revlog.delta_config.max_deltachain_span", b"6.6", stacklevel=2
1488 )
1489 return self.delta_config.max_deltachain_span
1490
1491 @property
1492 def _withsparseread(self):
1493 """temporary compatibility proxy"""
1494 util.nouideprecwarn(
1495 b"use revlog.data_config.with_sparse_read", b"6.6", stacklevel=2
1496 )
1497 return self.data_config.with_sparse_read
1498
1499 @property
1500 def _sparserevlog(self):
1501 """temporary compatibility proxy"""
1502 util.nouideprecwarn(
1503 b"use revlog.delta_config.sparse_revlog", b"6.6", stacklevel=2
1504 )
1505 return self.delta_config.sparse_revlog
1506
1507 @property
1508 def hassidedata(self):
1509 """temporary compatibility proxy"""
1510 util.nouideprecwarn(
1511 b"use revlog.feature_config.has_side_data", b"6.6", stacklevel=2
1512 )
1513 return self.feature_config.has_side_data
1514
1515 @property
1516 def _srdensitythreshold(self):
1517 """temporary compatibility proxy"""
1518 util.nouideprecwarn(
1519 b"use revlog.data_config.sr_density_threshold",
1520 b"6.6",
1521 stacklevel=2,
1522 )
1523 return self.data_config.sr_density_threshold
1524
1525 @property
1526 def _srmingapsize(self):
1527 """temporary compatibility proxy"""
1528 util.nouideprecwarn(
1529 b"use revlog.data_config.sr_min_gap_size", b"6.6", stacklevel=2
1530 )
1531 return self.data_config.sr_min_gap_size
1532
1533 @property
1534 def _compute_rank(self):
1535 """temporary compatibility proxy"""
1536 util.nouideprecwarn(
1537 b"use revlog.feature_config.compute_rank", b"6.6", stacklevel=2
1538 )
1539 return self.feature_config.compute_rank
1540
1541 @property
1542 def canonical_parent_order(self):
1543 """temporary compatibility proxy"""
1544 util.nouideprecwarn(
1545 b"use revlog.feature_config.canonical_parent_order",
1546 b"6.6",
1547 stacklevel=2,
1548 )
1549 return self.feature_config.canonical_parent_order
1550
1551 @property
1552 def _lazydelta(self):
1553 """temporary compatibility proxy"""
1554 util.nouideprecwarn(
1555 b"use revlog.delta_config.lazy_delta", b"6.6", stacklevel=2
1556 )
1557 return self.delta_config.lazy_delta
1558
1559 @property
1560 def _lazydeltabase(self):
1561 """temporary compatibility proxy"""
1562 util.nouideprecwarn(
1563 b"use revlog.delta_config.lazy_delta_base", b"6.6", stacklevel=2
1564 )
1565 return self.delta_config.lazy_delta_base
1566
1567 def _init_opts(self): 1379 def _init_opts(self):
1568 """process options (from above/config) to setup associated default revlog mode 1380 """process options (from above/config) to setup associated default revlog mode
1569 1381
1570 These values might be affected when actually reading on disk information. 1382 These values might be affected when actually reading on disk information.
1571 1383