dirstate: explain why appending instead of os.path.join() is safe
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 02 Sep 2008 17:32:07 +0200
changeset 6973 8c136043867b
parent 6972 63d1d3e489f8
child 6974 8997b81a33da
dirstate: explain why appending instead of os.path.join() is safe
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Tue Sep 02 15:12:50 2008 +0200
+++ b/mercurial/dirstate.py	Tue Sep 02 17:32:07 2008 +0200
@@ -101,6 +101,7 @@
 
     def _join(self, f):
         # much faster than os.path.join()
+        # it's safe because f is always a relative path
         return self._rootdir + f
 
     def flagfunc(self, fallback):