Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG1312afae2d51: convert: migrate to new method for getting copy source
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/convert/hg.py (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Martin von Zweigbergk | Dec 28 2017, 1:27 AM |
Status | Author | Revision | |
---|---|---|---|
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz |
return changes, copies, cleanp2 | return changes, copies, cleanp2 | ||||
def _getcopies(self, ctx, parents, files): | def _getcopies(self, ctx, parents, files): | ||||
copies = {} | copies = {} | ||||
for name in files: | for name in files: | ||||
if name in self.ignored: | if name in self.ignored: | ||||
continue | continue | ||||
try: | try: | ||||
copysource, _copynode = ctx.filectx(name).renamed() | copysource = ctx.filectx(name).copysource() | ||||
if copysource in self.ignored: | if copysource in self.ignored: | ||||
continue | continue | ||||
# Ignore copy sources not in parent revisions | # Ignore copy sources not in parent revisions | ||||
if not any(copysource in p for p in parents): | if not any(copysource in p for p in parents): | ||||
continue | continue | ||||
copies[name] = copysource | copies[name] = copysource | ||||
except TypeError: | except TypeError: | ||||
pass | pass |