comparison hgext/largefiles/overrides.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 f2601cbce209
children 8d1dc380b026
comparison
equal deleted inserted replaced
41364:0132221c25cd 41365:876494fd967d
207 207
208 def warn(files, msg): 208 def warn(files, msg):
209 for f in files: 209 for f in files:
210 ui.warn(msg % m.rel(f)) 210 ui.warn(msg % m.rel(f))
211 return int(len(files) > 0) 211 return int(len(files) > 0)
212
213 result = 0
214 212
215 if after: 213 if after:
216 remove = deleted 214 remove = deleted
217 result = warn(modified + added + clean, 215 result = warn(modified + added + clean,
218 _('not removing %s: file still exists\n')) 216 _('not removing %s: file still exists\n'))