Mon, 06 Dec 2021 20:24:00 +0100
Fixed an issue saving a diff from the Mercurial log browser dialog in project mode.
eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py | file | annotate | diff | comparison | revisions |
--- a/eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py Mon Dec 06 19:03:48 2021 +0100 +++ b/eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py Mon Dec 06 20:24:00 2021 +0100 @@ -2661,8 +2661,12 @@ return if self.projectMode: - fname = self.vcs.splitPath(self.__filename)[0] - fname += "/{0}.diff".format(os.path.split(fname)[-1]) + if self.__filename is None: + fname = "{0}.diff".format(os.path.splitext( + ericApp().getObject("Project").getProjectFile())[0]) + else: + fname = self.vcs.splitPath(self.__filename)[0] + fname += "/{0}.diff".format(os.path.split(fname)[-1]) else: dname, fname = self.vcs.splitPath(self.__filename) if fname != '.':