Mercurial > hg-stable
diff hgext/rebase.py @ 17614:d417986e5e05
rebase: remove useless list around repo.revs
As repo.revs already returns a list.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 18 Sep 2012 23:29:05 +0200 |
parents | aafc521668d8 |
children | 9e2dc0d292cd |
line wrap: on
line diff
--- 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"),