Logo Search packages:      
Sourcecode: qct version File versions

def qctlib::gui_logic::CommitTool::__selectChanges (   self,
  workingFile 
) [private]

User would like to select changes made to this file for commit,
   unselected changes are left in working directory after commit or
   at exit.

Definition at line 476 of file gui_logic.py.

00476                                           :
        '''User would like to select changes made to this file for commit,
           unselected changes are left in working directory after commit or
           at exit.
        '''
        self.vcs.dirtyCache(workingFile)
        workingCopy = '.qct/' + workingFile + '.orig'
        try:
            path = os.path.dirname(workingFile)
            os.makedirs('.qct/' + path)
        except OSError:
            pass
        try:
            os.remove(workingCopy)
        except OSError:
            pass
        try:
            os.rename(workingFile, workingCopy)
        except:
            return
        self.changeSelectedFiles.append(workingFile)
        try:
            self.vcs.generateParentFile(workingFile)
            runProgram([self.twowayTool, workingCopy, workingFile])
        except:
            print "Change selection failed, returning working file"
            self.__resetChangeSelection(workingFile)

    def __resetChangeSelection(self, workingFile):


Generated by  Doxygen 1.6.0   Back to index