Mercurial > public > mercurial-scm > hg-stable
comparison contrib/synthrepo.py @ 41387:876494fd967d
cleanup: delete lots of unused local variables
These were found by IntelliJ. There are many more, but these seemed
pretty safe.
Differential Revision: https://phab.mercurial-scm.org/D5629
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 17 Jan 2019 09:17:12 -0800 |
parents | 1c93e0237a24 |
children | 0bd56c291359 |
comparison
equal
deleted
inserted
replaced
41386:0132221c25cd | 41387:876494fd967d |
---|---|
448 for __ in xrange(add): | 448 for __ in xrange(add): |
449 lines.insert(random.randint(0, len(lines)), makeline()) | 449 lines.insert(random.randint(0, len(lines)), makeline()) |
450 path = fctx.path() | 450 path = fctx.path() |
451 changes[path] = '\n'.join(lines) + '\n' | 451 changes[path] = '\n'.join(lines) + '\n' |
452 for __ in xrange(pick(filesremoved)): | 452 for __ in xrange(pick(filesremoved)): |
453 path = random.choice(mfk) | |
454 for __ in xrange(10): | 453 for __ in xrange(10): |
455 path = random.choice(mfk) | 454 path = random.choice(mfk) |
456 if path not in changes: | 455 if path not in changes: |
457 break | 456 break |
458 if filesadded: | 457 if filesadded: |