Mercurial > hg
diff hgext/remotefilelog/shallowutil.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 | 2d49482d0dd4 |
children | 59fa3890d40a |