# HG changeset patch # User Pierre-Yves David # Date 1495739644 -7200 # Node ID df9233aa4bacf57c88c136e7f5c21837de441ea1 # Parent e3ddb534e5d979761a0cc13a59c4c34e4da5eac0 evolve: fix --rev with --list This was untested and never worked. diff -r e3ddb534e5d9 -r df9233aa4bac hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Wed May 24 18:17:01 2017 +0200 +++ b/hgext3rd/evolve/__init__.py Thu May 25 21:14:04 2017 +0200 @@ -1317,7 +1317,7 @@ revs = repo.revs('+'.join("%s()" % t for t in troublecategories)) if opts.get('rev'): - revs = revs & repo.revs(opts.get('rev')) + revs = scmutil.revrange(repo, opts.get('rev')) fm = ui.formatter('evolvelist', opts) for rev in revs: diff -r e3ddb534e5d9 -r df9233aa4bac tests/test-evolve-list.t --- a/tests/test-evolve-list.t Wed May 24 18:17:01 2017 +0200 +++ b/tests/test-evolve-list.t Thu May 25 21:14:04 2017 +0200 @@ -72,6 +72,10 @@ a922b3733e98: b divergent: c882616e9d84 (draft) (precursor d2ae7f538514) + $ hg evolve --list --rev c882616e9d84 + c882616e9d84: b + divergent: a922b3733e98 (draft) (precursor d2ae7f538514) + $ hg phase -p a922b3733e98 $ hg evolve --list c882616e9d84: b