##// END OF EJS Templates
dirstate: call and cache os.getcwd() in constructor...
Martin von Zweigbergk -
r41823:e178b131 default
parent child Browse files
Show More
@@ -81,6 +81,10 b' class dirstate(object):'
81 self._origpl = None
81 self._origpl = None
82 self._updatedfiles = set()
82 self._updatedfiles = set()
83 self._mapcls = dirstatemap
83 self._mapcls = dirstatemap
84 # Access and cache cwd early, so we don't access it for the first time
85 # after a working-copy update caused it to not exist (accessing it then
86 # raises an exception).
87 self._cwd
84
88
85 @contextlib.contextmanager
89 @contextlib.contextmanager
86 def parentchange(self):
90 def parentchange(self):
General Comments 0
You need to be logged in to leave comments. Login now