# HG changeset patch # User Mads Kiilerich # Date 2013-01-15 19:55:47 # Node ID 7ac4449f0f39993b5e00985ecb3369abdbac18a3 # Parent a4d7fd7ad1f754da1ae4ff047f1a3647812f81b5 clone: don't include empty revlogs in stream diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -545,8 +545,9 @@ def stream(repo, proto): try: repo.ui.debug('scanning\n') for name, ename, size in repo.store.walk(): - entries.append((name, size)) - total_bytes += size + if size: + entries.append((name, size)) + total_bytes += size finally: lock.release() except error.LockError: