store: add comment in _hashencode with reason for skipping the first 5 chars
authorAdrian Buehlmann <adrian@cadifra.com>
Wed, 13 May 2015 20:36:56 +0200
changeset 25062 b7a8e9fa605f
parent 25061 625dd917f04f
child 25063 723e364488f4
store: add comment in _hashencode with reason for skipping the first 5 chars
mercurial/store.py
--- a/mercurial/store.py	Tue Apr 14 10:57:15 2015 -0400
+++ b/mercurial/store.py	Wed May 13 20:36:56 2015 +0200
@@ -187,7 +187,7 @@
 
 def _hashencode(path, dotencode):
     digest = _sha(path).hexdigest()
-    le = lowerencode(path[5:]).split('/')
+    le = lowerencode(path[5:]).split('/') # skips prefix 'data/'
     parts = _auxencode(le, dotencode)
     basename = parts[-1]
     _root, ext = os.path.splitext(basename)