evolve: localrepo.revs() already returns a list stable
authorPatrick Mezard <patrick@mezard.eu>
Sat, 25 Aug 2012 08:26:28 +0200
branchstable
changeset 511 ddeb71df916d
parent 510 f511d2aa742c
child 512 8b25e9cf76fd
evolve: localrepo.revs() already returns a list
hgext/evolve.py
--- a/hgext/evolve.py	Sat Aug 25 08:20:50 2012 +0200
+++ b/hgext/evolve.py	Sat Aug 25 08:26:28 2012 +0200
@@ -675,8 +675,8 @@
     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
@@ -1318,7 +1318,7 @@
 
     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')