1. TortoiseHg
  2. TortoiseHg
  3. thg


Yuya Nishihara  committed b32a6d7

branchop: strip leading/trailing spaces from branch name (fixes #2568)

Follows up hg 12dbdd348bb0.

This uses QString API instead of Python unicode because branchop is assumed
as QString at several places.

  • Participants
  • Parent commits 615e679
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/branchop.py

View file
             QString - open new named branch
         if self.branchCombo.isEnabled():
-            self.branchop = self.branchCombo.currentText()
+            # branch name cannot start/end with whitespace (see dirstate._branch)
+            self.branchop = self.branchCombo.currentText().trimmed()
         elif self.closebranch.isChecked():
             self.branchop = False