Mercurial > evolve
changeset 5543:75ca371bd9d1
rewind: avoid yoda condition
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 21 Jul 2020 01:03:18 +0800 |
parents | 7a184d29fff5 |
children | 0bb75a6c29b1 |
files | hgext3rd/evolve/rewind.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/rewind.py Thu Sep 17 19:51:08 2020 +0800 +++ b/hgext3rd/evolve/rewind.py Tue Jul 21 01:03:18 2020 +0800 @@ -94,7 +94,7 @@ for rev in targets: ctx = unfi[rev] ssets = obsutil.successorssets(repo, ctx.node(), cache=sscache) - if 1 < len(ssets): + if len(ssets) > 1: msg = _(b'rewind confused by divergence on %s') % ctx hint = _(b'solve divergence first or use "--as-divergence"') raise error.Abort(msg, hint=hint)