equal
deleted
inserted
replaced
521 * A mapping between revision numbers and nodes. |
521 * A mapping between revision numbers and nodes. |
522 * DAG data (storing and querying the relationship between nodes). |
522 * DAG data (storing and querying the relationship between nodes). |
523 * Metadata to facilitate storage. |
523 * Metadata to facilitate storage. |
524 """ |
524 """ |
525 |
525 |
|
526 nullid = interfaceutil.Attribute( |
|
527 """node for the null revision for use as delta base.""" |
|
528 ) |
|
529 |
526 def __len__(): |
530 def __len__(): |
527 """Obtain the number of revisions stored for this file.""" |
531 """Obtain the number of revisions stored for this file.""" |
528 |
532 |
529 def __iter__(): |
533 def __iter__(): |
530 """Iterate over revision numbers for this file.""" |
534 """Iterate over revision numbers for this file.""" |
1141 |
1145 |
1142 |
1146 |
1143 class imanifeststorage(interfaceutil.Interface): |
1147 class imanifeststorage(interfaceutil.Interface): |
1144 """Storage interface for manifest data.""" |
1148 """Storage interface for manifest data.""" |
1145 |
1149 |
|
1150 nodeconstants = interfaceutil.Attribute( |
|
1151 """nodeconstants used by the current repository.""" |
|
1152 ) |
|
1153 |
1146 tree = interfaceutil.Attribute( |
1154 tree = interfaceutil.Attribute( |
1147 """The path to the directory this manifest tracks. |
1155 """The path to the directory this manifest tracks. |
1148 |
1156 |
1149 The empty bytestring represents the root manifest. |
1157 The empty bytestring represents the root manifest. |
1150 """ |
1158 """ |
1364 |
1372 |
1365 Also serves as a means to access nested tree manifests and to cache |
1373 Also serves as a means to access nested tree manifests and to cache |
1366 tree manifests. |
1374 tree manifests. |
1367 """ |
1375 """ |
1368 |
1376 |
|
1377 nodeconstants = interfaceutil.Attribute( |
|
1378 """nodeconstants used by the current repository.""" |
|
1379 ) |
|
1380 |
1369 def __getitem__(node): |
1381 def __getitem__(node): |
1370 """Obtain a manifest instance for a given binary node. |
1382 """Obtain a manifest instance for a given binary node. |
1371 |
1383 |
1372 Equivalent to calling ``self.get('', node)``. |
1384 Equivalent to calling ``self.get('', node)``. |
1373 |
1385 |
1431 class ilocalrepositorymain(interfaceutil.Interface): |
1443 class ilocalrepositorymain(interfaceutil.Interface): |
1432 """Main interface for local repositories. |
1444 """Main interface for local repositories. |
1433 |
1445 |
1434 This currently captures the reality of things - not how things should be. |
1446 This currently captures the reality of things - not how things should be. |
1435 """ |
1447 """ |
|
1448 |
|
1449 nodeconstants = interfaceutil.Attribute( |
|
1450 """Constant nodes matching the hash function used by the repository.""" |
|
1451 ) |
|
1452 nullid = interfaceutil.Attribute( |
|
1453 """null revision for the hash function used by the repository.""" |
|
1454 ) |
1436 |
1455 |
1437 supportedformats = interfaceutil.Attribute( |
1456 supportedformats = interfaceutil.Attribute( |
1438 """Set of requirements that apply to stream clone. |
1457 """Set of requirements that apply to stream clone. |
1439 |
1458 |
1440 This is actually a class attribute and is shared among all instances. |
1459 This is actually a class attribute and is shared among all instances. |