diff mercurial/streamclone.py @ 3856:f9e129684b5d

streamclone: remove unnecessary test, pconvert names
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 10 Dec 2006 14:39:51 +0100
parents c0b449154a90
children abaee83ce0a6 a3a6f71edf2e
line wrap: on
line diff
--- a/mercurial/streamclone.py
+++ b/mercurial/streamclone.py
@@ -79,8 +79,7 @@ def stream_out(repo, fileobj):
     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()