changeset 6973:8c136043867b

dirstate: explain why appending instead of os.path.join() is safe
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 02 Sep 2008 17:32:07 +0200
parents 63d1d3e489f8
children 8997b81a33da
files mercurial/dirstate.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):