Mercurial > hg
comparison mercurial/revlogutils/nodemap.py @ 51700:7f0cb9ee0534
Backout accidental publication of a large range of revisions
I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 23 Jul 2024 10:02:46 +0200 |
parents | 493034cc3265 |
children | ca7bde5dbafb |
comparison
equal
deleted
inserted
replaced
51699:bd1483fd7088 | 51700:7f0cb9ee0534 |
---|---|
551 def _walk_trie(block): | 551 def _walk_trie(block): |
552 """yield all the block in a trie | 552 """yield all the block in a trie |
553 | 553 |
554 Children blocks are always yield before their parent block. | 554 Children blocks are always yield before their parent block. |
555 """ | 555 """ |
556 for __, item in sorted(block.items()): | 556 for (__, item) in sorted(block.items()): |
557 if isinstance(item, dict): | 557 if isinstance(item, dict): |
558 for sub_block in _walk_trie(item): | 558 for sub_block in _walk_trie(item): |
559 yield sub_block | 559 yield sub_block |
560 yield block | 560 yield block |
561 | 561 |