Mercurial > hg
comparison mercurial/cmdutil.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 | 6acbe86c6490 |
children | d75fde22de91 |
comparison
equal
deleted
inserted
replaced
41364:0132221c25cd | 41365:876494fd967d |
---|---|
1249 ui.warn(_('%s: deleted in working directory\n') % relsrc) | 1249 ui.warn(_('%s: deleted in working directory\n') % relsrc) |
1250 srcexists = False | 1250 srcexists = False |
1251 else: | 1251 else: |
1252 ui.warn(_('%s: cannot copy - %s\n') % | 1252 ui.warn(_('%s: cannot copy - %s\n') % |
1253 (relsrc, encoding.strtolocal(inst.strerror))) | 1253 (relsrc, encoding.strtolocal(inst.strerror))) |
1254 if rename: | |
1255 hint = _("('hg rename --after' to record the rename)\n") | |
1256 else: | |
1257 hint = _("('hg copy --after' to record the copy)\n") | |
1258 return True # report a failure | 1254 return True # report a failure |
1259 | 1255 |
1260 if ui.verbose or not exact: | 1256 if ui.verbose or not exact: |
1261 if rename: | 1257 if rename: |
1262 ui.status(_('moving %s to %s\n') % (relsrc, reltarget)) | 1258 ui.status(_('moving %s to %s\n') % (relsrc, reltarget)) |