* Handle NULL_REVISION in SvnRepository.copy_content(). Fixes compatibility
with bzr merge-into.
+ BUG FIXES
+
+ * Handle long file names with unicode characters correctly on python2.4 (#129334)
+
bzr-svn 0.4.3 2007-09-15
PERFORMANCE
if len(ret) > 150:
ret = "%d@%s:%s;%s" % (revnum, uuid,
escape_svn_path(branch),
- sha.new(path).hexdigest())
+ sha.new(path.encode('utf-8')).hexdigest())
assert isinstance(ret, str)
return osutils.safe_file_id(ret)
self.assertEqual("2@uuid:bp;" + sha1(dir+"filename"),
generate_file_id(self.repos, generate_svn_revision_id("uuid", 2, "bp", "bla"), dir+"filename"))
+ def test_generate_file_id_long_nordic(self):
+ dir = "this/is/a" + ("/very"*40) + "/long/path/"
+ self.assertEqual("2@uuid:bp;" + sha1((dir+u"filename\x2c\x8a").encode('utf-8')),
+ generate_file_id(self.repos, generate_svn_revision_id("uuid", 2, "bp", "bla"), dir+u"filename\x2c\x8a"))
+
def test_generate_revid_special_char_ascii(self):
self.assertEqual("2@uuid:bp:mypath%2C%8A",
generate_file_id(self.repos, generate_svn_revision_id("uuid", 2, "bp", "bla"), "mypath\x2c\x8a"))