1005 names = [project.getRelativePath(nam) for nam in names] |
1005 names = [project.getRelativePath(nam) for nam in names] |
1006 if names[0]: |
1006 if names[0]: |
1007 dlg = DeleteFilesConfirmationDialog( |
1007 dlg = DeleteFilesConfirmationDialog( |
1008 self.parent(), |
1008 self.parent(), |
1009 self.tr("Re-Merge"), |
1009 self.tr("Re-Merge"), |
1010 self.tr( |
1010 self.tr("Do you really want to re-merge these files or directories?"), |
1011 "Do you really want to re-merge these files or directories?" |
|
1012 ), |
|
1013 names, |
1011 names, |
1014 ) |
1012 ) |
1015 yes = dlg.exec() == QDialog.DialogCode.Accepted |
1013 yes = dlg.exec() == QDialog.DialogCode.Accepted |
1016 else: |
1014 else: |
1017 yes = EricMessageBox.yesNo( |
1015 yes = EricMessageBox.yesNo( |
1118 |
1116 |
1119 output, error = self.__client.runcommand(args) |
1117 output, error = self.__client.runcommand(args) |
1120 |
1118 |
1121 if output: |
1119 if output: |
1122 repoPath = self.getClient().getRepository() |
1120 repoPath = self.getClient().getRepository() |
1123 dirs = [x for x in names.keys() if os.path.isdir(x)] |
1121 dirs = [x for x in names if os.path.isdir(x)] |
1124 for line in output.splitlines(): |
1122 for line in output.splitlines(): |
1125 if line and line[0] in "MARC!?I": |
1123 if line and line[0] in "MARC!?I": |
1126 flag, path = line.split(" ", 1) |
1124 flag, path = line.split(" ", 1) |
1127 name = os.path.normcase(os.path.join(repoPath, path)) |
1125 name = os.path.normcase(os.path.join(repoPath, path)) |
1128 dirName = os.path.dirname(name) |
1126 dirName = os.path.dirname(name) |