Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG3d685ddf6b64: remotefilelog: use %d to format an int
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
| hg-reviewers |
| Lint Skipped |
| Unit Tests Skipped |
| Path | Packages | |||
|---|---|---|---|---|
| M | hgext/remotefilelog/basepack.py (4 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| Gregory Szorc | Jan 22 2019, 9:25 PM |
| SUPPORTED_VERSIONS = [2] | SUPPORTED_VERSIONS = [2] | ||||
| def _checkversion(self, version): | def _checkversion(self, version): | ||||
| if version in self.SUPPORTED_VERSIONS: | if version in self.SUPPORTED_VERSIONS: | ||||
| if self.VERSION is None: | if self.VERSION is None: | ||||
| # only affect this instance | # only affect this instance | ||||
| self.VERSION = version | self.VERSION = version | ||||
| elif self.VERSION != version: | elif self.VERSION != version: | ||||
| raise RuntimeError('inconsistent version: %s' % version) | raise RuntimeError('inconsistent version: %d' % version) | ||||
| else: | else: | ||||
| raise RuntimeError('unsupported version: %s' % version) | raise RuntimeError('unsupported version: %d' % version) | ||||
| class basepack(versionmixin): | class basepack(versionmixin): | ||||
| # The maximum amount we should read via mmap before remmaping so the old | # The maximum amount we should read via mmap before remmaping so the old | ||||
| # pages can be released (100MB) | # pages can be released (100MB) | ||||
| MAXPAGEDIN = 100 * 1024**2 | MAXPAGEDIN = 100 * 1024**2 | ||||
| SUPPORTED_VERSIONS = [2] | SUPPORTED_VERSIONS = [2] | ||||