# HG changeset patch # User Benoit Boissinot # Date 2010-05-01 12:36:48 # Node ID d6094402de14bd5b8ff0a23166da1bc640ab8eb1 # Parent e4f911ce21de5f8cee669da95774d4d8af261e96 relink/progress: correctly handle the no file to relink case diff --git a/hgext/relink.py b/hgext/relink.py --- a/hgext/relink.py +++ b/hgext/relink.py @@ -145,7 +145,7 @@ def do_relink(src, dst, files, ui): except OSError, inst: ui.warn('%s: %s\n' % (tgt, str(inst))) - ui.progress(_('relinking'), None, f, _(' files'), total) + ui.progress(_('relinking'), None, unit=_(' files'), total=total) ui.status(_('relinked %d files (%d bytes reclaimed)\n') % (relinked, savedbytes))