##// 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 b' class dirstate(object):'
83 # ntpath.join(root, '') of Python 2.7.9 does not add sep if root is
83 # ntpath.join(root, '') of Python 2.7.9 does not add sep if root is
84 # UNC path pointing to root share (issue4557)
84 # UNC path pointing to root share (issue4557)
85 self._rootdir = pathutil.normasprefix(root)
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 self._dirty = False
86 self._dirty = False
91 self._dirtypl = False
87 self._dirtypl = False
92 self._lastnormaltime = 0
88 self._lastnormaltime = 0
@@ -299,6 +295,10 b' class dirstate(object):'
299
295
300 @propertycache
296 @propertycache
301 def _cwd(self):
297 def _cwd(self):
298 # internal config: ui.forcecwd
299 forcecwd = self._ui.config('ui', 'forcecwd')
300 if forcecwd:
301 return forcecwd
302 return pycompat.getcwd()
302 return pycompat.getcwd()
303
303
304 def getcwd(self):
304 def getcwd(self):
General Comments 0
You need to be logged in to leave comments. Login now