Mercurial > public > mercurial-scm > hg-stable
diff mercurial/wireprotov1server.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 | ad8d8dc9be3f |
children | 9cb51e74e9ad |
line wrap: on
line diff
--- a/mercurial/wireprotov1server.py Mon Sep 24 14:46:37 2018 -0700 +++ b/mercurial/wireprotov1server.py Thu Jan 17 09:17:12 2019 -0800 @@ -424,8 +424,6 @@ raise error.Abort(bundle2requiredmain, hint=bundle2requiredhint) - prefercompressed = True - try: clheads = set(repo.changelog.heads()) heads = set(opts.get('heads', set())) @@ -578,7 +576,6 @@ repo.ui.debug('redirecting incoming bundle to %s\n' % tempname) fp = os.fdopen(fd, pycompat.sysstr('wb+')) - r = 0 for p in payload: fp.write(p) fp.seek(0)