Yuya Nishihara  committed cc92907

repowidget: replace use of low-level revset function by repo.revs()

  • Participants
  • Parent commits f903f74
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

 import shlex, subprocess  # used by runCustomCommand
 import urllib
 import cStringIO
-from mercurial import revset, error, patch, phases, util, ui
+from mercurial import error, patch, phases, util, ui
 from tortoisehg.util import hglib, shlib, paths
 from tortoisehg.hgqt.i18n import _
                 B, A = self.menuselection
                 A, B = self.menuselection
-            func = revset.match(self.repo.ui, '%s::%s' % (A, B))
-            return [c for c in func(self.repo, range(len(self.repo)))]
+            return self.repo.revs('%s::%s' % (A, B))
         def exportPair():
         # Check whether there are existing patches in the MQ queue whose name
         # collides with the revisions that are going to be imported
-        func = revset.match(self.repo.ui, '%s::%s and not hidden()'
-                                          % (self.rev, endrev))
-        revList = [c for c in func(self.repo, range(len(self.repo)))]
+        revList = self.repo.revs('%s::%s and not hidden()' % (self.rev, endrev))
         if endrev and not revList:
             # There is a qparent but the revision list is empty