Mercurial > public > mercurial-scm > hg
comparison mercurial/upgrade.py @ 45694:d1c10d33a85c
upgrade: improve documentation of matchrevlog()
It was not clear what selected for cloning meant. I updated with an extra line
of description.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 08 Oct 2020 17:29:51 +0530 |
parents | 78f0bb37f52d |
children | edf4fa06df94 |
comparison
equal
deleted
inserted
replaced
45693:64a9423450ef | 45694:d1c10d33a85c |
---|---|
741 sidedatacompanion = metadata.getsidedataremover(srcrepo, dstrepo) | 741 sidedatacompanion = metadata.getsidedataremover(srcrepo, dstrepo) |
742 return sidedatacompanion | 742 return sidedatacompanion |
743 | 743 |
744 | 744 |
745 def matchrevlog(revlogfilter, entry): | 745 def matchrevlog(revlogfilter, entry): |
746 """check is a revlog is selected for cloning | 746 """check if a revlog is selected for cloning. |
747 | |
748 In other words, are there any updates which need to be done on revlog | |
749 or it can be blindly copied. | |
747 | 750 |
748 The store entry is checked against the passed filter""" | 751 The store entry is checked against the passed filter""" |
749 if entry.endswith(b'00changelog.i'): | 752 if entry.endswith(b'00changelog.i'): |
750 return UPGRADE_CHANGELOG in revlogfilter | 753 return UPGRADE_CHANGELOG in revlogfilter |
751 elif entry.endswith(b'00manifest.i'): | 754 elif entry.endswith(b'00manifest.i'): |