Plugins/VcsPlugins/vcsMercurial/HgBundleDialog.py

branch
maintenance
changeset 5502
0c11d92cb6be
parent 5389
9b1c800daff3
child 5678
0aa72754d535
diff -r 24ba642d7e69 -r 0c11d92cb6be Plugins/VcsPlugins/vcsMercurial/HgBundleDialog.py
--- a/Plugins/VcsPlugins/vcsMercurial/HgBundleDialog.py	Wed Feb 08 20:17:39 2017 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgBundleDialog.py	Thu Feb 09 19:52:17 2017 +0100
@@ -138,7 +138,9 @@
             string, boolean)
         """
         if self.multipleButton.isChecked():
-            revs = self.multipleEdit.toPlainText().strip().splitlines()
+            revs = [rev.strip() for rev in
+                    self.multipleEdit.toPlainText().strip().splitlines()
+                    if rev.strip()]
         elif self.tagButton.isChecked():
             revs = [self.tagCombo.currentText()]
         elif self.branchButton.isChecked():
@@ -148,7 +150,9 @@
         else:
             revs = []
         
-        baseRevs = self.baseRevisionsEdit.toPlainText().strip().splitlines()
+        baseRevs = [rev.strip() for rev in
+                    self.baseRevisionsEdit.toPlainText().strip().splitlines()
+                    if rev.strip()]
         
         return (revs, baseRevs, self.compressionCombo.currentText(),
                 self.allCheckBox.isChecked())

eric ide

mercurial