Mercurial > hg
changeset 17691:c6c7e466dd3a
pathencode: simplify basicencode
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sun, 30 Sep 2012 23:53:56 +0200 |
parents | eb7f8359249a |
children | fb458b3e72fc |
files | mercurial/pathencode.c |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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;