diff hgext/transplant.py @ 45471:a03fde1077ce

log: reorganize if-else and for loop in logcmdutil._makematcher() The test conditions are branchy depending on --follow and --rev options, so it should be better to switch first by --follow --rev. Note that revs is not empty so "if follow and startctxs" can be replaced with "if follow and opts.get(b'rev')".
author Yuya Nishihara <yuya@tcha.org>
date Fri, 11 Sep 2020 15:08:58 +0900
parents 9d2b2df2c2ba
children 03726f5b6092
line wrap: on
line diff