Show More
@@ -1498,8 +1498,8 class localrepository(object): | |||
|
1498 | 1498 | |
|
1499 | 1499 | tr = self.transaction() |
|
1500 | 1500 | |
|
1501 |
# write changelog |
|
|
1502 |
# |
|
|
1501 | # write changelog data to temp files so concurrent readers will not see | |
|
1502 | # inconsistent view | |
|
1503 | 1503 | cl = None |
|
1504 | 1504 | try: |
|
1505 | 1505 | cl = appendfile.appendchangelog(self.opener, self.changelog.version) |
@@ -1515,11 +1515,6 class localrepository(object): | |||
|
1515 | 1515 | cnr = cl.count() - 1 |
|
1516 | 1516 | changesets = cnr - cor |
|
1517 | 1517 | |
|
1518 | mf = None | |
|
1519 | try: | |
|
1520 | mf = appendfile.appendmanifest(self.opener, | |
|
1521 | self.manifest.version) | |
|
1522 | ||
|
1523 | 1518 |
|
|
1524 | 1519 |
|
|
1525 | 1520 |
|
@@ -1527,7 +1522,7 class localrepository(object): | |||
|
1527 | 1522 |
|
|
1528 | 1523 |
|
|
1529 | 1524 |
|
|
1530 |
|
|
|
1525 | self.manifest.addgroup(chunkiter, revmap, tr) | |
|
1531 | 1526 | |
|
1532 | 1527 |
|
|
1533 | 1528 |
|
@@ -1544,22 +1539,14 class localrepository(object): | |||
|
1544 | 1539 |
|
|
1545 | 1540 |
|
|
1546 | 1541 | |
|
1547 | # write order here is important so concurrent readers will see | |
|
1548 | # consistent view of repo | |
|
1549 | mf.writedata() | |
|
1550 | finally: | |
|
1551 | if mf: | |
|
1552 | mf.cleanup() | |
|
1553 | 1542 | cl.writedata() |
|
1554 | 1543 | finally: |
|
1555 | 1544 | if cl: |
|
1556 | 1545 | cl.cleanup() |
|
1557 | 1546 | |
|
1558 |
# make changelog |
|
|
1547 | # make changelog see real files again | |
|
1559 | 1548 | self.changelog = changelog.changelog(self.opener, self.changelog.version) |
|
1560 | self.manifest = manifest.manifest(self.opener, self.manifest.version) | |
|
1561 | 1549 | self.changelog.checkinlinesize(tr) |
|
1562 | self.manifest.checkinlinesize(tr) | |
|
1563 | 1550 | |
|
1564 | 1551 | newheads = len(self.changelog.heads()) |
|
1565 | 1552 | heads = "" |
General Comments 0
You need to be logged in to leave comments.
Login now