##// END OF EJS Templates
record: replace poor man's if-statement with real if-statement
Martin Geisler -
r13773:e5390a8b default
parent child Browse files
Show More
@@ -324,10 +324,12 b' def filterpatch(ui, headers):'
324 for i, chunk in enumerate(h.hunks):
324 for i, chunk in enumerate(h.hunks):
325 if skipfile is None and skipall is None:
325 if skipfile is None and skipall is None:
326 chunk.pretty(ui)
326 chunk.pretty(ui)
327 msg = (total == 1
327 if total == 1:
328 and (_('record this change to %r?') % chunk.filename())
328 msg = _('record this change to %r?') % chunk.filename()
329 or (_('record change %d/%d to %r?') %
329 else:
330 (pos - len(h.hunks) + i, total, chunk.filename())))
330 idx = pos - len(h.hunks) + i
331 msg = _('record change %d/%d to %r?') % (idx, total,
332 chunk.filename())
331 r, skipfile, skipall = prompt(skipfile, skipall, msg)
333 r, skipfile, skipall = prompt(skipfile, skipall, msg)
332 if r:
334 if r:
333 if fixoffset:
335 if fixoffset:
General Comments 0
You need to be logged in to leave comments. Login now