Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 4134:9dc64c8414ca
Merge with crew-stable
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 04 Mar 2007 09:03:21 -0300 |
parents | 35b39097c3e6 43d8f7466920 |
children | 26596a6b6518 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Mar 03 18:59:54 2007 -0800 +++ b/mercurial/localrepo.py Sun Mar 04 09:03:21 2007 -0300 @@ -1880,6 +1880,8 @@ ofp.write(chunk) ofp.close() elapsed = time.time() - start + if elapsed <= 0: + elapsed = 0.001 self.ui.status(_('transferred %s in %.1f seconds (%s/sec)\n') % (util.bytecount(total_bytes), elapsed, util.bytecount(total_bytes / elapsed)))