1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed 6028444

matching: wrap long lines

  • Participants
  • Parent commits 040b460
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/matching.py

View file
         ### matched revision combo
         self.rev_combo = combo = QComboBox()
         combo.setEditable(True)
-        self.grid.addWidget(QLabel(_('Find revisions matching fields of:')), 0, 0)
+        self.grid.addWidget(QLabel(_('Find revisions matching fields of:')),
+                            0, 0)
         self.grid.addWidget(combo, 0, 1)
 
         # Give the combo box a minimum width that will ensure that the dialog is
         factory = csinfo.factory(self.repo, style=style)
         self.rev_to_match_info = factory()
         self.rev_to_match_info_lbl = QLabel(_('Revision to Match:'))
-        self.grid.addWidget(self.rev_to_match_info_lbl, 1, 0, Qt.AlignLeft | Qt.AlignTop)
+        self.grid.addWidget(self.rev_to_match_info_lbl, 1, 0,
+                            Qt.AlignLeft | Qt.AlignTop)
         self.grid.addWidget(self.rev_to_match_info, 1, 1)
         self.grid.addWidget(self.rev_to_match_info_text, 1, 1)
 
         self.desc_btngroup.setExclusive(False)
         self.desc_btngroup.addButton(self.summary_chk)
         self.desc_btngroup.addButton(self.description_chk)
-        self.desc_btngroup.buttonClicked.connect(self._selectSummaryOrDescription)
+        self.desc_btngroup.buttonClicked.connect(
+            self._selectSummaryOrDescription)
 
         self.author_chk = QCheckBox(_('Author'))
         self.date_chk = QCheckBox(_('Date'))
         self.branch_chk = QCheckBox(_('Branch'))
         self.parents_chk = QCheckBox(_('Parents'))
         self.phase_chk = QCheckBox(_('Phase'))
-        self._hideable_chks = (self.branch_chk, self.phase_chk, self.parents_chk,)
+        self._hideable_chks = (self.branch_chk, self.phase_chk,
+                               self.parents_chk)
 
         self.optbox.addWidget(self.summary_chk)
         self.optbox.addWidget(self.description_chk)
 
         #### Persisted Options
         self.summary_chk.setChecked(s.value('matching/summary', False).toBool())
-        self.description_chk.setChecked(s.value('matching/description', True).toBool())
+        self.description_chk.setChecked(
+            s.value('matching/description', True).toBool())
         self.author_chk.setChecked(s.value('matching/author', True).toBool())
         self.branch_chk.setChecked(s.value('matching/branch', False).toBool())
         self.date_chk.setChecked(s.value('matching/date', True).toBool())
         self.diff_chk.setChecked(s.value('matching/diff', False).toBool())
         self.parents_chk.setChecked(s.value('matching/parents', False).toBool())
         self.phase_chk.setChecked(s.value('matching/phase', False).toBool())
-        self.substate_chk.setChecked(s.value('matching/substate', False).toBool())
+        self.substate_chk.setChecked(
+            s.value('matching/substate', False).toBool())
 
         ## bottom buttons
         buttons = QDialogButtonBox()
 
         rev = hglib.fromunicode(self.rev_combo.currentText())
         if fields:
-            self.revsetexpression = "matching(%s, '%s')" % (rev, ' '.join(fields))
+            self.revsetexpression = ("matching(%s, '%s')"
+                                     % (rev, ' '.join(fields)))
         else:
             self.revsetexpression = "matching(%s)" % rev
         self.accept()