Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGc71f80bfb414: changegroup: remove outdated comment
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/changegroup.py (3 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Augie Fackler | Sep 19 2018, 11:36 PM |
if self._isshallow: | if self._isshallow: | ||||
# In a shallow clone, the linknodes callback needs to also include | # In a shallow clone, the linknodes callback needs to also include | ||||
# those file nodes that are in the manifests we sent but weren't | # those file nodes that are in the manifests we sent but weren't | ||||
# introduced by those manifests. | # introduced by those manifests. | ||||
commonctxs = [self._repo[c] for c in commonrevs] | commonctxs = [self._repo[c] for c in commonrevs] | ||||
clrev = self._repo.changelog.rev | clrev = self._repo.changelog.rev | ||||
# Defining this function has a side-effect of overriding the | |||||
# function of the same name that was passed in as an argument. | |||||
# TODO have caller pass in appropriate function. | |||||
def linknodes(flog, fname): | def linknodes(flog, fname): | ||||
for c in commonctxs: | for c in commonctxs: | ||||
try: | try: | ||||
fnode = c.filenode(fname) | fnode = c.filenode(fname) | ||||
clrevtolocalrev[c.rev()] = flog.rev(fnode) | clrevtolocalrev[c.rev()] = flog.rev(fnode) | ||||
except error.ManifestLookupError: | except error.ManifestLookupError: | ||||
pass | pass | ||||
links = normallinknodes(flog, fname) | links = normallinknodes(flog, fname) |