##// END OF EJS Templates
dirstate: state that getcwd() shouldn't be used to get real file path...
Yuya Nishihara -
r26293:3d24f31c default
parent child Browse files
Show More
@@ -220,6 +220,12 b' class dirstate(object):'
220 return os.getcwd()
220 return os.getcwd()
221
221
222 def getcwd(self):
222 def getcwd(self):
223 '''Return the path from which a canonical path is calculated.
224
225 This path should be used to resolve file patterns or to convert
226 canonical paths back to file paths for display. It shouldn't be
227 used to get real file paths. Use vfs functions instead.
228 '''
223 cwd = self._cwd
229 cwd = self._cwd
224 if cwd == self._root:
230 if cwd == self._root:
225 return ''
231 return ''
General Comments 0
You need to be logged in to leave comments. Login now