mercurial/revlogutils/nodemap.py
changeset 51700 7f0cb9ee0534
parent 51690 493034cc3265
child 51703 ca7bde5dbafb
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