Corrected the Save function of the Mercurial Diff Dialog so that the patches can be applied using the import function.

Wed, 30 Apr 2014 18:33:53 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 30 Apr 2014 18:33:53 +0200
changeset 3550
8019baa33b0c
parent 3549
96ebf42cd960
child 3554
9ca56a89aec5

Corrected the Save function of the Mercurial Diff Dialog so that the patches can be applied using the import function.

Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py	Tue Apr 29 18:22:44 2014 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py	Wed Apr 30 18:33:53 2014 +0200
@@ -433,7 +433,7 @@
         
         eol = e5App().getObject("Project").getEolString()
         try:
-            f = open(fname, "w", encoding="utf-8")
+            f = open(fname, "w", encoding="utf-8", newline="")
             f.write(eol.join(self.contents.toPlainText().splitlines()))
             f.close()
         except IOError as why:

eric ide

mercurial