Mercurial > hg
comparison contrib/perf.py @ 41365: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 | f36fd52dae8f |
children | 48394923fbdc |
comparison
equal
deleted
inserted
replaced
41364:0132221c25cd | 41365:876494fd967d |
---|---|
909 path = ui.paths.getpath(dest, default=(b'default-push', b'default')) | 909 path = ui.paths.getpath(dest, default=(b'default-push', b'default')) |
910 if not path: | 910 if not path: |
911 raise error.Abort((b'default repository not configured!'), | 911 raise error.Abort((b'default repository not configured!'), |
912 hint=(b"see 'hg help config.paths'")) | 912 hint=(b"see 'hg help config.paths'")) |
913 dest = path.pushloc or path.loc | 913 dest = path.pushloc or path.loc |
914 branches = (path.branch, opts.get(b'branch') or []) | |
915 ui.status((b'analysing phase of %s\n') % util.hidepassword(dest)) | 914 ui.status((b'analysing phase of %s\n') % util.hidepassword(dest)) |
916 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get(b'rev')) | |
917 other = hg.peer(repo, opts, dest) | 915 other = hg.peer(repo, opts, dest) |
918 | 916 |
919 # easier to perform discovery through the operation | 917 # easier to perform discovery through the operation |
920 op = exchange.pushoperation(repo, other) | 918 op = exchange.pushoperation(repo, other) |
921 exchange._pushdiscoverychangeset(op) | 919 exchange._pushdiscoverychangeset(op) |