def _GetChangeLists(self): """Get all change lists.""" if self._changelists == None: previous_cwd = os.getcwd() os.chdir(self.RepositoryRoot()) self._changelists = gcl.GetModifiedFiles() os.chdir(previous_cwd) return self._changelists
def _GetChangeLists(self): """Get all change lists.""" if self._changelists == None: previous_cwd = os.getcwd() os.chdir(self.RepositoryRoot()) # Need to import here to avoid circular dependency. import gcl self._changelists = gcl.GetModifiedFiles() os.chdir(previous_cwd) return self._changelists