Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
pulkit |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | hgext/convert/convcmd.py (24 lines) | |||
M | hgext/convert/subversion.py (7 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Martin von Zweigbergk | Jun 18 2018, 6:05 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | D3806 lfs: use progess helper | |
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz |
changed, removed = set(), set() | changed, removed = set(), set() | ||||
copies = {} | copies = {} | ||||
new_module, revnum = revsplit(rev)[1:] | new_module, revnum = revsplit(rev)[1:] | ||||
if new_module != self.module: | if new_module != self.module: | ||||
self.module = new_module | self.module = new_module | ||||
self.reparent(self.module) | self.reparent(self.module) | ||||
progress = self.ui.makeprogress(_('scanning paths'), unit=_('paths'), | |||||
total=len(paths)) | |||||
for i, (path, ent) in enumerate(paths): | for i, (path, ent) in enumerate(paths): | ||||
self.ui.progress(_('scanning paths'), i, item=path, | progress.update(i, item=path) | ||||
total=len(paths), unit=_('paths')) | |||||
entrypath = self.getrelpath(path) | entrypath = self.getrelpath(path) | ||||
kind = self._checkpath(entrypath, revnum) | kind = self._checkpath(entrypath, revnum) | ||||
if kind == svn.core.svn_node_file: | if kind == svn.core.svn_node_file: | ||||
changed.add(self.recode(entrypath)) | changed.add(self.recode(entrypath)) | ||||
if not ent.copyfrom_path or not parents: | if not ent.copyfrom_path or not parents: | ||||
continue | continue | ||||
# Copy sources not in parent revisions cannot be | # Copy sources not in parent revisions cannot be | ||||
for childpath in children: | for childpath in children: | ||||
childpath = self.getrelpath("/" + childpath, pmodule) | childpath = self.getrelpath("/" + childpath, pmodule) | ||||
if not childpath: | if not childpath: | ||||
continue | continue | ||||
copytopath = path + childpath[len(copyfrompath):] | copytopath = path + childpath[len(copyfrompath):] | ||||
copytopath = self.getrelpath(copytopath) | copytopath = self.getrelpath(copytopath) | ||||
copies[self.recode(copytopath)] = self.recode(childpath) | copies[self.recode(copytopath)] = self.recode(childpath) | ||||
self.ui.progress(_('scanning paths'), None) | progress.complete() | ||||
changed.update(removed) | changed.update(removed) | ||||
return (list(changed), removed, copies) | return (list(changed), removed, copies) | ||||
def _fetch_revisions(self, from_revnum, to_revnum): | def _fetch_revisions(self, from_revnum, to_revnum): | ||||
if from_revnum < to_revnum: | if from_revnum < to_revnum: | ||||
from_revnum, to_revnum = to_revnum, from_revnum | from_revnum, to_revnum = to_revnum, from_revnum | ||||
self.child_cset = None | self.child_cset = None |
This can be progress.increment().