streamclone: remove unnecessary test, pconvert names
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 10 Dec 2006 14:39:51 +0100
changeset 3856 f9e129684b5d
parent 3855 b9cdd6f2aa43
child 3857 f6f16f871049
streamclone: remove unnecessary test, pconvert names
mercurial/streamclone.py
--- a/mercurial/streamclone.py	Sun Dec 10 12:46:47 2006 +0100
+++ b/mercurial/streamclone.py	Sun Dec 10 14:39:51 2006 +0100
@@ -79,8 +79,7 @@
     entries = []
     total_bytes = 0
     for name, size in walkrepo(repo.spath):
-        if repo.decodefn:
-            name = repo.decodefn(name)
+        name = util.pconvert(repo.decodefn(name))
         entries.append((name, size))
         total_bytes += size
     repolock.release()