96 else: |
96 else: |
97 title = self.tr("Purge Files") |
97 title = self.tr("Purge Files") |
98 message = self.tr( |
98 message = self.tr( |
99 """Do really want to delete files not tracked by Mercurial?""") |
99 """Do really want to delete files not tracked by Mercurial?""") |
100 entries = self.__getEntries(repodir, deleteAll) |
100 entries = self.__getEntries(repodir, deleteAll) |
101 from UI.DeleteFilesConfirmationDialog import \ |
101 from UI.DeleteFilesConfirmationDialog import ( |
102 DeleteFilesConfirmationDialog |
102 DeleteFilesConfirmationDialog |
|
103 ) |
103 dlg = DeleteFilesConfirmationDialog(None, title, message, entries) |
104 dlg = DeleteFilesConfirmationDialog(None, title, message, entries) |
104 if dlg.exec_() == QDialog.Accepted: |
105 if dlg.exec_() == QDialog.Accepted: |
105 args = self.vcs.initCommand("purge") |
106 args = self.vcs.initCommand("purge") |
106 if deleteAll: |
107 if deleteAll: |
107 args.append("--all") |
108 args.append("--all") |