mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
dirstate: explain why appending instead of os.path.join() is safe
This commit is contained in:
parent
fe44f90406
commit
882dcf0454
@ -101,6 +101,7 @@ class dirstate(object):
|
||||
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user