##// END OF EJS Templates
dirstate: centralize _cwd handling into _cwd method...
FUJIWARA Katsunori -
r33212:b7f6885c default
parent child Browse files
Show More
@@ -83,10 +83,6 class dirstate(object):
83 83 # ntpath.join(root, '') of Python 2.7.9 does not add sep if root is
84 84 # UNC path pointing to root share (issue4557)
85 85 self._rootdir = pathutil.normasprefix(root)
86 # internal config: ui.forcecwd
87 forcecwd = ui.config('ui', 'forcecwd')
88 if forcecwd:
89 self._cwd = forcecwd
90 86 self._dirty = False
91 87 self._dirtypl = False
92 88 self._lastnormaltime = 0
@@ -299,6 +295,10 class dirstate(object):
299 295
300 296 @propertycache
301 297 def _cwd(self):
298 # internal config: ui.forcecwd
299 forcecwd = self._ui.config('ui', 'forcecwd')
300 if forcecwd:
301 return forcecwd
302 302 return pycompat.getcwd()
303 303
304 304 def getcwd(self):
General Comments 0
You need to be logged in to leave comments. Login now