47 |
47 |
48 @param projectDir directory name of the project (string) |
48 @param projectDir directory name of the project (string) |
49 @param patchCheckData tuple of data as returned by the |
49 @param patchCheckData tuple of data as returned by the |
50 GitPatchFilesDialog.getData() method |
50 GitPatchFilesDialog.getData() method |
51 """ |
51 """ |
|
52 from .GitPatchFilesDialog import GitPatchFilesDialog |
|
53 |
52 self.__patchCheckData = patchCheckData |
54 self.__patchCheckData = patchCheckData |
53 |
55 |
54 self.changesTreeWidget.clear() |
56 self.changesTreeWidget.clear() |
55 self.summaryEdit.clear() |
57 self.summaryEdit.clear() |
56 |
58 |
58 repodir = projectDir |
60 repodir = projectDir |
59 while not os.path.isdir(os.path.join(repodir, self.__vcs.adminDir)): |
61 while not os.path.isdir(os.path.join(repodir, self.__vcs.adminDir)): |
60 repodir = os.path.dirname(repodir) |
62 repodir = os.path.dirname(repodir) |
61 if os.path.splitdrive(repodir)[1] == os.sep: |
63 if os.path.splitdrive(repodir)[1] == os.sep: |
62 return |
64 return |
63 |
|
64 from .GitPatchFilesDialog import GitPatchFilesDialog |
|
65 |
65 |
66 dlg = GitPatchFilesDialog(repodir, patchCheckData) |
66 dlg = GitPatchFilesDialog(repodir, patchCheckData) |
67 if dlg.exec() == QDialog.DialogCode.Accepted: |
67 if dlg.exec() == QDialog.DialogCode.Accepted: |
68 patchFilesList, stripCount, inaccurateEof, recount = dlg.getData() |
68 patchFilesList, stripCount, inaccurateEof, recount = dlg.getData() |
69 self.__patchCheckData = (patchFilesList, stripCount, inaccurateEof, recount) |
69 self.__patchCheckData = (patchFilesList, stripCount, inaccurateEof, recount) |