mercurial/store.py
changeset 17693 0c6de45e1212
parent 17653 dacb50696b75
child 17721 cf236e3501c3
--- a/mercurial/store.py	Sun Sep 30 23:53:56 2012 +0200
+++ b/mercurial/store.py	Sun Sep 30 23:53:56 2012 +0200
@@ -255,6 +255,8 @@
     return res
 
 def _pathencode(path):
+    if len(path) > _maxstorepathlen:
+        return None
     ef = _encodefname(encodedir(path)).split('/')
     res = '/'.join(_auxencode(ef, True))
     if len(res) > _maxstorepathlen: