Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHGce65c25dc161: synthrepo: close progress topics
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 | contrib/synthrepo.py (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Martin von Zweigbergk | Jun 18 2018, 6:17 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 |
elif mar == 'r': | elif mar == 'r': | ||||
fileremoves += 1 | fileremoves += 1 | ||||
for length, count in lineadd.iteritems(): | for length, count in lineadd.iteritems(): | ||||
linelengths[length] += count | linelengths[length] += count | ||||
fileschanged[filechanges] += 1 | fileschanged[filechanges] += 1 | ||||
filesadded[fileadds] += 1 | filesadded[fileadds] += 1 | ||||
dirsadded[diradds] += 1 | dirsadded[diradds] += 1 | ||||
filesremoved[fileremoves] += 1 | filesremoved[fileremoves] += 1 | ||||
progress.complete() | |||||
invchildren = zerodict() | invchildren = zerodict() | ||||
for rev, count in children.iteritems(): | for rev, count in children.iteritems(): | ||||
invchildren[count] += 1 | invchildren[count] += 1 | ||||
if output != '-': | if output != '-': | ||||
ui.status(_('writing output to %s\n') % output) | ui.status(_('writing output to %s\n') % output) | ||||
user = random.choice(words) + '@' + random.choice(words) | user = random.choice(words) + '@' + random.choice(words) | ||||
mc = context.memctx(repo, pl, makeline(minimum=2), | mc = context.memctx(repo, pl, makeline(minimum=2), | ||||
sorted(changes), | sorted(changes), | ||||
filectxfn, user, '%d %d' % (date, pick(tzoffset))) | filectxfn, user, '%d %d' % (date, pick(tzoffset))) | ||||
newnode = mc.commit() | newnode = mc.commit() | ||||
heads.add(repo.changelog.rev(newnode)) | heads.add(repo.changelog.rev(newnode)) | ||||
heads.discard(r1) | heads.discard(r1) | ||||
heads.discard(r2) | heads.discard(r2) | ||||
progress.complete() | |||||
lock.release() | lock.release() | ||||
wlock.release() | wlock.release() | ||||
def renamedirs(dirs, words): | def renamedirs(dirs, words): | ||||
'''Randomly rename the directory names in the per-dir file count dict.''' | '''Randomly rename the directory names in the per-dir file count dict.''' | ||||
wordgen = itertools.cycle(words) | wordgen = itertools.cycle(words) | ||||
replacements = {'': ''} | replacements = {'': ''} |