Skip to content
Snippets Groups Projects
Commit 201d3000 authored by Nick Quaranto's avatar Nick Quaranto
Browse files

Splitting the if statement up since python didn't like that.

parent 366052ca
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,10 @@
def export_git_objects(self):
self.ui.status(_("exporting git objects\n"))
total = len(self.repo.changelog)
magnitude = int(math.log(total, 10)) + 1 if total else 1
if total:
magnitude = int(math.log(total, 10)) + 1
else:
magnitude = 1
for i, rev in enumerate(self.repo.changelog):
if i%100 == 0:
self.ui.status(_("at: %*d/%d\n") % (magnitude, i, total))
......
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