Mercurial > evolve
changeset 6625:e3cf5f68da1c
rewind: opts is guaranteed to have the required keys, access them directly
This helps pytype see that they aren't optional, and now it no longer complains
that None doesn't have `append` method.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 31 Dec 2023 17:42:02 -0300 |
parents | da6224c38e07 |
children | 7580aa2ac660 |
files | hgext3rd/evolve/rewind.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/rewind.py Sun Dec 31 16:58:49 2023 -0300 +++ b/hgext3rd/evolve/rewind.py Sun Dec 31 17:42:02 2023 -0300 @@ -335,8 +335,8 @@ """ unfi = repo.unfiltered() targets = set() - revsto = opts.get('to') - revsfrom = opts.get('from') + revsto = opts['to'] + revsfrom = opts['from'] if not (revsto or revsfrom): revsfrom.append(b'.') if revsto: