mercurial/pathencode.c
changeset 17691 c6c7e466dd3a
parent 17616 9535a0dc41f2
child 17692 fb458b3e72fc
--- a/mercurial/pathencode.c	Sun Sep 30 23:53:56 2012 +0200
+++ b/mercurial/pathencode.c	Sun Sep 30 23:53:56 2012 +0200
@@ -475,15 +475,8 @@
 
 	Py_ssize_t destlen = 0;
 
-	if (len < 5 || memcmp(src, "data/", 5) != 0) {
-		memcopy(dest, &destlen, destsize, src, len);
-		return destlen;
-	}
-
-	memcopy(dest, &destlen, destsize, "data/", 5);
-
 	return _encode(twobytes, onebyte, dest, destlen, destsize,
-		       src + 5, len - 5, 1);
+		       src, len, 1);
 }
 
 static const Py_ssize_t maxstorepathlen = 120;