Logo Search packages:      
Sourcecode: qct version File versions

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

Restore original working copy, clean up .qct/

Definition at line 504 of file gui_logic.py.

00504                                                  :
        '''Restore original working copy, clean up .qct/'''
        i = self.changeSelectedFiles.index(workingFile)
        del self.changeSelectedFiles[i]
        self.vcs.dirtyCache(workingFile)
        workingCopy = '.qct/' + workingFile + '.orig'
        try:
            os.remove(workingFile)
        except OSError:
            pass
        os.rename(workingCopy, workingFile)
        try:
            path = os.path.dirname(workingFile)
            if path: os.removedirs('.qct/' + path)
            os.removedirs('.qct/')
        except OSError:
            pass

    def __updateCommitButtonState(self):


Generated by  Doxygen 1.6.0   Back to index