Commits

Yuya Nishihara committed 510df03

minor fix

  • Participants
  • Parent commits d93bc87

Comments (0)

Files changed (2)

File repof-buildqmove.diff

          if revset:
              self.setRevisionSet.emit(revset)
          else:
-@@ -163,8 +164,20 @@ class RepoFilterBar(QToolBar):
+@@ -163,8 +164,22 @@ class RepoFilterBar(QToolBar):
          self.saveQuery()
          self.revsetcombo.lineEdit().selectAll()
  
 +
      def _prepareQuery(self):
          query = unicode(self.revsetcombo.currentText()).strip()
++        if not query:
++            return ''
 +        if self._isKeywordQuery(query):
 +            s = hglib.fromunicode(query)
 +            query = hglib.tounicode(hgrevset.formatspec('keyword(%s)', s))

File revsetlabeltry.diff

 # HG changeset patch
 # Date 1362903069 -32400
-# Parent adf60bd32552eb4a1b5ff0eeda410875f6d4d27b
-repofilter: annotate how query text is interpreted (INCOMPLETE) (closes #2019)
+# Parent b3d24c8e40b5e182f63cd549aefaaff5bb111c53
+repofilter: annotate how query text is interpreted (closes #2019)
 
 This shows "Revision Set" or "Keyword Search" in the right corner of the input
 box. It will help to find out why simple query fails.
      def openEditor(self):
          query = self._prepareQuery()
          self.entrydlg.entry.setText(query)
-@@ -189,6 +203,43 @@ class RepoFilterBar(QToolBar):
+@@ -191,6 +205,43 @@ class RepoFilterBar(QToolBar):
              query = hglib.tounicode(hgrevset.formatspec('keyword(%s)', s))
          return query