]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
consolidate: tolerate unicode dirnames
authorBrian Warner <warner@allmydata.com>
Fri, 13 Mar 2009 06:54:02 +0000 (23:54 -0700)
committerBrian Warner <warner@allmydata.com>
Fri, 13 Mar 2009 06:54:02 +0000 (23:54 -0700)
src/allmydata/scripts/consolidate.py

index 5dcec8a29fae39cf0aa45dd2d012a49f02ed31d3..a98c15117451f37ce52399dd4988808cb96acd15 100644 (file)
@@ -280,7 +280,7 @@ class Consolidator:
         old_dircap = self.get_old_dirhash(dirhash)
         if old_dircap:
             if self.options["verbose"]:
-                self.msg("   %s: reused" % "/".join(path))
+                self.msg("   %r: reused" % "/".join(path))
             assert isinstance(old_dircap, str)
             self.directories_reused += 1
             self.directories_used.add(old_dircap)
@@ -288,7 +288,7 @@ class Consolidator:
         if not children_modified:
             # we're allowed to use this directory as-is
             if self.options["verbose"]:
-                self.msg("   %s: used as-is" % "/".join(path))
+                self.msg("   %r: used as-is" % "/".join(path))
             new_dircap = readonly(readcap)
             assert isinstance(new_dircap, str)
             self.store_dirhash(dirhash, new_dircap)
@@ -297,7 +297,7 @@ class Consolidator:
             return new_dircap
         # otherwise, we need to create a new directory
         if self.options["verbose"]:
-            self.msg("   %s: created" % "/".join(path))
+            self.msg("   %r: created" % "/".join(path))
         new_dircap = readonly(self.mkdir(contents))
         assert isinstance(new_dircap, str)
         self.store_dirhash(dirhash, new_dircap)