##// END OF EJS Templates
largefiles: cleanup of printmessage handling - the printed flag was redundant
Mads Kiilerich -
r20060:750d04e7 stable
parent child Browse files
Show More
@@ -438,10 +438,8 b' def updatelfiles(ui, repo, filelist=None'
438 if filelist is not None:
438 if filelist is not None:
439 lfiles = [f for f in lfiles if f in filelist]
439 lfiles = [f for f in lfiles if f in filelist]
440
440
441 printed = False
442 if printmessage and lfiles:
441 if printmessage and lfiles:
443 ui.status(_('getting changed largefiles\n'))
442 ui.status(_('getting changed largefiles\n'))
444 printed = True
445 cachelfiles(ui, repo, None, lfiles)
443 cachelfiles(ui, repo, None, lfiles)
446
444
447 updated, removed = 0, 0
445 updated, removed = 0, 0
@@ -452,12 +450,9 b' def updatelfiles(ui, repo, filelist=None'
452 updated += i
450 updated += i
453 else:
451 else:
454 removed -= i
452 removed -= i
455 if printmessage and (removed or updated) and not printed:
456 ui.status(_('getting changed largefiles\n'))
457 printed = True
458
453
459 lfdirstate.write()
454 lfdirstate.write()
460 if printed and printmessage:
455 if printmessage and lfiles:
461 ui.status(_('%d largefiles updated, %d removed\n') % (updated,
456 ui.status(_('%d largefiles updated, %d removed\n') % (updated,
462 removed))
457 removed))
463 finally:
458 finally:
General Comments 0
You need to be logged in to leave comments. Login now