clone: don't include empty revlogs in stream
authorMads Kiilerich <madski@unity3d.com>
Tue, 15 Jan 2013 20:55:47 +0100
changeset 18381 7ac4449f0f39
parent 18380 a4d7fd7ad1f7
child 18382 f3b21beb9802
clone: don't include empty revlogs in stream
mercurial/wireproto.py
--- a/mercurial/wireproto.py	Tue Jan 15 20:54:57 2013 +0100
+++ b/mercurial/wireproto.py	Tue Jan 15 20:55:47 2013 +0100
@@ -545,8 +545,9 @@
         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: