Skip to content
Snippets Groups Projects
Commit 750d04e7 authored by Mads Kiilerich's avatar Mads Kiilerich
Browse files

largefiles: cleanup of printmessage handling - the printed flag was redundant

parent d54467c1
No related branches found
No related tags found
No related merge requests found
......@@ -438,6 +438,5 @@
if filelist is not None:
lfiles = [f for f in lfiles if f in filelist]
printed = False
if printmessage and lfiles:
ui.status(_('getting changed largefiles\n'))
......@@ -442,6 +441,5 @@
if printmessage and lfiles:
ui.status(_('getting changed largefiles\n'))
printed = True
cachelfiles(ui, repo, None, lfiles)
updated, removed = 0, 0
......@@ -452,8 +450,5 @@
updated += i
else:
removed -= i
if printmessage and (removed or updated) and not printed:
ui.status(_('getting changed largefiles\n'))
printed = True
lfdirstate.write()
......@@ -458,6 +453,6 @@
lfdirstate.write()
if printed and printmessage:
if printmessage and lfiles:
ui.status(_('%d largefiles updated, %d removed\n') % (updated,
removed))
finally:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment