Mercurial > evolve
changeset 511:ddeb71df916d stable
evolve: localrepo.revs() already returns a list
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sat, 25 Aug 2012 08:26:28 +0200 |
parents | f511d2aa742c |
children | 8b25e9cf76fd |
files | hgext/evolve.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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')