Mercurial > evolve
diff hgext/evolve.py @ 1405:eaf82490af76
evolve: prevent using --rev and --any together
Before this patch it was possible to use evolve --rev --any and it meant
evolve --rev. This patch throws an error when using evolve --rev --any.
author | Laurent Charignon <lcharignon@fb.com> |
---|---|
date | Tue, 16 Jun 2015 16:58:38 -0700 |
parents | 848a04c078c7 |
children | 552687eb4856 |
line wrap: on
line diff
--- a/hgext/evolve.py Tue Jun 16 15:14:37 2015 -0700 +++ b/hgext/evolve.py Tue Jun 16 16:58:38 2015 -0700 @@ -1439,6 +1439,8 @@ revs = set([tro]) elif targetcat in repo['.'].troubles(): revs = set([repo['.'].rev()]) + if revopt and anyopt: + raise util.Abort('cannot specify both "--rev" and "--any"') if not revs: msg = "no troubled changes in the specified revisions" raise util.Abort(msg)