Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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