HomePhabricator

log: reorganize if-else and for loop in logcmdutil._makematcher()

Authored by yuja.

Description

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')".

Details

Committed
yujaFri, Sep 11, 2:08 AM
Parents
rHG6e474eec4be6: merge: update commitinfo from all mergeresults during bid merge
Branches
Unknown
Tags
Unknown