Commits

Patrick Mézard committed ddeb71d

evolve: localrepo.revs() already returns a list

  • Participants
  • Parent commits f511d2a

Comments (0)

Files changed (1)

File hgext/evolve.py

     Changesets with troubles.
     """
     _ = revset.getargs(x, 0, 0, 'troubled takes no arguments')
-    return list(repo.revs('%ld and (unstable() + latecomer() + conflicting())',
-                          subset))
+    return repo.revs('%ld and (unstable() + latecomer() + conflicting())',
+                     subset)
 
 
 ### Obsolescence graph
 
     tr = _picknexttroubled(ui, repo, anyopt)
     if tr is None:
-        troubled = list(repo.revs('troubled()'))
+        troubled = repo.revs('troubled()')
         if troubled:
             ui.write_err(_('nothing to evolve here\n'))
             ui.status(_('(%i troubled changesets, do you want --any ?)\n')