rebase: remove useless list around repo.revs
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 18 Sep 2012 23:29:05 +0200
changeset 17614 d417986e5e05
parent 17613 aafc521668d8
child 17615 9e2dc0d292cd
rebase: remove useless list around repo.revs As repo.revs already returns a list.
hgext/rebase.py
--- a/hgext/rebase.py	Tue Sep 18 23:42:27 2012 +0200
+++ b/hgext/rebase.py	Tue Sep 18 23:29:05 2012 +0200
@@ -193,8 +193,8 @@
             if not rebaseset:
                 repo.ui.debug('base is ancestor of destination\n')
                 result = None
-            elif not keepf and list(repo.revs('first(children(%ld) - %ld)',
-                                              rebaseset, rebaseset)):
+            elif not keepf and repo.revs('first(children(%ld) - %ld)',
+                                         rebaseset, rebaseset):
                 raise util.Abort(
                     _("can't remove original changesets with"
                       " unrebased descendants"),